aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/UnicodeTest.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <kyrtzidis@apple.com>2022-12-15 13:33:17 -0800
committerArgyrios Kyrtzidis <kyrtzidis@apple.com>2022-12-15 22:46:41 -0800
commit59df56413bdc25bef53bf1629b26bd2176089088 (patch)
treeb91fb8d9471bccb22eb4b907812dd2dbc211fffe /llvm/unittests/Support/UnicodeTest.cpp
parent982a586ab481d5470a732c8eec898cb72d789b0e (diff)
downloadllvm-59df56413bdc25bef53bf1629b26bd2176089088.zip
llvm-59df56413bdc25bef53bf1629b26bd2176089088.tar.gz
llvm-59df56413bdc25bef53bf1629b26bd2176089088.tar.bz2
[clang/Lexer] Enhance `Lexer::getImmediateMacroNameForDiagnostics` to return a result from non-file buffers
Use `SourceManager::isWrittenInScratchSpace()` to specifically check for token paste or stringization, instead of excluding all non-file buffers. This allows diagnostics to mention macro names that were defined from the command-line. Differential Revision: https://reviews.llvm.org/D140164
Diffstat (limited to 'llvm/unittests/Support/UnicodeTest.cpp')
0 files changed, 0 insertions, 0 deletions