The cache recorded the wrong expansion location for all but the first
stringization. It seems uncommon to stringize the same macro argument
multiple times, so this cache doesn't seem that important.
Fixes PR39942
Paths
| Differential D65428
Remove cache for macro arg stringization ClosedPublic Authored by rnk on Jul 29 2019, 6:30 PM.
Details Summary The cache recorded the wrong expansion location for all but the first Fixes PR39942
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 30 2019, 10:40 AM Comment Actions Thanks for looking into it as well, I would not have seen the issue without reviewing the test case again. :) Closed by commit rL367337: Remove cache for macro arg stringization (authored by rnk). · Explain WhyJul 30 2019, 10:59 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 212261 clang/include/clang/Lex/MacroArgs.h
clang/lib/Lex/MacroArgs.cpp
clang/lib/Lex/TokenLexer.cpp
clang/test/CoverageMapping/macro-stringize-twice.cpp
clang/unittests/Lex/LexerTest.cpp
|