Skip to content
Commit 59df5641 authored by Argyrios Kyrtzidis's avatar Argyrios Kyrtzidis
Browse files

[clang/Lexer] Enhance `Lexer::getImmediateMacroNameForDiagnostics` to return a...

[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
parent 982a586a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment