[clang] [clang][Preprocessor] Handle the first pp-token in EnterMainSourceFile (PR #145244)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 24 09:34:34 PDT 2025


================
@@ -139,10 +139,9 @@ class TokenLexer {
   void Init(const Token *TokArray, unsigned NumToks, bool DisableMacroExpansion,
             bool OwnsTokens, bool IsReinject);
 
-  /// If the next token lexed will pop this macro off the
-  /// expansion stack, return 2.  If the next unexpanded token is a '(', return
-  /// 1, otherwise return 0.
-  unsigned isNextTokenLParen() const;
+  /// If the next token lexed will pop this macro off the expansion stack,
----------------
yronglin wrote:

Oh, sorry, I missed a `)`.  I want to explain in parentheses why TokenLexer::isAtEnd returns true.

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


More information about the cfe-commits mailing list