[clang] [clang] Optimize Lexer hot path to reduce compile time (PR #177153)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 12 02:51:22 PST 2026


================
@@ -283,6 +285,11 @@ class Token {
   ///
   bool isAtStartOfLine() const { return getFlag(StartOfLine); }
 
+  /// isAtPhysicalStartOfLine - Return true if this token is at the start of a
+  /// physical line.
+  ///
----------------
cor3ntin wrote:

```suggestion
```

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


More information about the cfe-commits mailing list