[clang] [clang] Improved isSimpleTypeSpecifier (PR #79037)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 26 18:55:42 PST 2024


================
@@ -196,6 +196,13 @@ class Token {
     PtrData = (void*) II;
   }
 
+  bool hasIdentifierInfo() {
+    if (is(tok::raw_identifier) || isAnnotation() || isLiteral() ||
+        is(tok::eof))
+      return false;
+    return true;
+  }
+
----------------
owenca wrote:

IMO we don't need this.

https://github.com/llvm/llvm-project/pull/79037


More information about the cfe-commits mailing list