]> granicus.if.org Git - clang/commit
Remove cache for macro arg stringization
authorReid Kleckner <rnk@google.com>
Tue, 30 Jul 2019 17:58:22 +0000 (17:58 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 30 Jul 2019 17:58:22 +0000 (17:58 +0000)
commitd646bc1c3c54f2daebab408542451ee961cb9dc6
tree99d8cba8024a5b8decba27fe52b7066b6af53704
parentd23b53b06b352cd5f7f84f164a0138f391a18926
Remove cache for macro arg stringization

Summary:
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

Reviewers: vsk, rsmith

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D65428

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367337 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Lex/MacroArgs.h
lib/Lex/MacroArgs.cpp
lib/Lex/TokenLexer.cpp
test/CoverageMapping/macro-stringize-twice.cpp [new file with mode: 0644]
unittests/Lex/LexerTest.cpp