[clang] [Clang] [NFC] Introduce factory functions for `Token` (PR #229254)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 5 23:09:36 PDT 2026


================
@@ -192,6 +192,34 @@ class Token {
     Loc = SourceLocation().getRawEncoding();
   }
 
+  static Token Create(tok::TokenKind Kind, SourceLocation Loc,
----------------
tbaederr wrote:

One of these days we will have to make a definitive decision about function name capitalization. _And stick to it_. We have `startToken` just above, now `Create` here.

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


More information about the cfe-commits mailing list