================
@@ -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:
As the comment says, the list includes ~common~ non-keyword types. We can
always grow the list in the future if necessary. I thought about using regex
but went for a specific list in order to minimize the possibility of regression.
https://github.com/llvm/llvm-project/pull/83709
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits