================ @@ -71,8 +71,21 @@ bool FormatToken::isSimpleTypeSpecifier() const { } } -bool FormatToken::isTypeOrIdentifier() const { - return isSimpleTypeSpecifier() || Tok.isOneOf(tok::kw_auto, tok::identifier); +// Sorted common C++ non-keyword types. +static SmallVector<StringRef> CppNonKeywordTypes = { + "int16_t", "int32_t", "int64_t", "int8_t", "intptr_t", "size_t", ---------------- mydeveloperday wrote:
ssize_t too? should everything be considered? https://en.cppreference.com/w/cpp/types/integer https://github.com/llvm/llvm-project/pull/83709 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits