================ @@ -34,9 +34,15 @@ const char *getTokenTypeName(TokenType Type) { return nullptr; } +// Sorted common C++ non-keyword types. +static SmallVector<StringRef> CppNonKeywordTypes = { + "byte", "int16_t", "int32_t", "int64_t", "int8_t", + "size_t", "uint16_t", "uint32_t", "uint64_t", "uint8_t", ---------------- owenca wrote:
I considered to include all [fixed width integer types](https://en.cppreference.com/w/cpp/types/integer) but decided to include only the common ones to avoid possible regressions. (I also looked at [fixed width floating-point types](https://en.cppreference.com/w/cpp/types/floating-point) and think we should wait until C++23 is commonly used.) 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