================
@@ -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",
----------------
zygoloid wrote:

According to codesearch.isocpp.org, `intptr_t`, `uintptr_t`, and `ptrdiff_t` 
are all more common than `int8_t`. Also I'd note that POSIX reserves all 
identifiers ending in `_t` for use as types, and C reserves all identifiers 
starting with `int` or `uint` and ending in `_t` for use as types.

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

Reply via email to