diff options
author | Argyrios Kyrtzidis <kyrtzidis@apple.com> | 2022-12-15 13:33:17 -0800 |
---|---|---|
committer | Argyrios Kyrtzidis <kyrtzidis@apple.com> | 2022-12-15 22:46:41 -0800 |
commit | 59df56413bdc25bef53bf1629b26bd2176089088 (patch) | |
tree | b91fb8d9471bccb22eb4b907812dd2dbc211fffe /llvm/unittests/Support/UnicodeTest.cpp | |
parent | 982a586ab481d5470a732c8eec898cb72d789b0e (diff) | |
download | llvm-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