[clang] [clang-tools-extra] [clangd] fix preprocessor caching-lexer state tracking (PR #203716)
Yihan Wang via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 23 06:48:37 PDT 2026
================
@@ -1190,6 +1190,9 @@ class Preprocessor {
/// Lex() should be invoked.
CachedTokensTy::size_type CachedLexPos = 0;
+ /// True when the caching lexer is installed as the active lexer layer.
+ bool IsCachingLexMode = false;
+
----------------
yronglin wrote:
Yeah, `CurLexerCallback == CLK_CachingLexer` works. I removed the `IsCachingLexMode ` flag.
https://github.com/llvm/llvm-project/pull/203716
More information about the cfe-commits
mailing list