[clang] [Clang] [NFC] Introduce factory functions for `Token` (PR #229254)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 6 02:29:38 PDT 2026
================
@@ -192,6 +192,34 @@ class Token {
Loc = SourceLocation().getRawEncoding();
}
+ static Token Create(tok::TokenKind Kind, SourceLocation Loc,
----------------
tbaederr wrote:
That is not a definitive decision at all. Our coding style says to start function names with lower case letters. And the "existing style" doesn't really seem true locally, since the new functions are surrounded by functions starting with lower case letters.
https://github.com/llvm/llvm-project/pull/229254
More information about the cfe-commits
mailing list