[clang] [Clang] [NFC] Introduce factory functions for `Token` (PR #229254)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 6 10:48:31 PDT 2026
================
@@ -192,6 +192,34 @@ class Token {
Loc = SourceLocation().getRawEncoding();
}
+ static Token Create(tok::TokenKind Kind, SourceLocation Loc,
----------------
AaronBallman wrote:
I think we should go with `create` because that matches the coding standard and the local naming conventions.
https://github.com/llvm/llvm-project/pull/229254
More information about the cfe-commits
mailing list