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 212384 cfe/trunk/include/clang/Lex/MacroArgs.h
cfe/trunk/lib/Lex/MacroArgs.cpp
cfe/trunk/lib/Lex/TokenLexer.cpp
cfe/trunk/test/CoverageMapping/macro-stringize-twice.cpp
cfe/trunk/unittests/Lex/LexerTest.cpp
|