This hides such tokens from TokenWatcher, preventing crashes in clients
trying to match spelled and expanded tokens.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Parse/ParsePragma.cpp | ||
---|---|---|
2610 | It was surprisingly hard for me to see that the changes here were just marking everything in TokenArray as reinjected. Could you do that directly with a loop at the end instead? (It's hard to imagine a significant performance difference) (And the same in all the other modified sites) | |
2618 | as discussed offline, it wasn't clear to me that this was "in time" as we're not trying to affect the behavior of the subsequent PP.Lex call, not the previous one. Maybe we could extract a function to mark an ArrayRef as reinject with a name that makes this clear. |
It was surprisingly hard for me to see that the changes here were just marking everything in TokenArray as reinjected.
Could you do that directly with a loop at the end instead? (It's hard to imagine a significant performance difference)
(And the same in all the other modified sites)