[clang] [clang][Diagnostics] Only record lexer check points when colors are enabled (PR #204926)
Yihan Wang via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 9 02:21:20 PDT 2026
================
@@ -383,6 +383,9 @@ class Preprocessor {
llvm::DenseMap<FileID, SmallVector<const char *>> CheckPoints;
unsigned CheckPointCounter = 0;
+ /// Whether to record lexer check points for diagnostic snippet highlighting.
+ bool RecordCheckPoints = false;
----------------
yronglin wrote:
But if we have a benchmark report would be even better. :)
https://github.com/llvm/llvm-project/pull/204926
More information about the cfe-commits
mailing list