[clang] [clang] Allow trivial pp-directives before C++ module directive (PR #153641)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 15 06:40:55 PDT 2025


================
@@ -89,7 +89,8 @@ class Token {
     IsReinjected = 0x800,        // A phase 4 token that was produced before and
                           // re-added, e.g. via EnterTokenStream. Annotation
                           // tokens are *not* reinjected.
-    SeenNoTrivialPPDirective = 0x1000,
+    HasSeenNoTrivialPPDirective =
+        0x1000, // Seen any 'no-trivial' pp-directives before current position.
----------------
erichkeane wrote:

```suggestion
        0x1000, // Whether we've seen any 'no-trivial' pp-directives before current position.
```

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


More information about the cfe-commits mailing list