[all-commits] [llvm/llvm-project] 59df56: [clang/Lexer] Enhance `Lexer::getImmediateMacroNam...
    Argyrios Kyrtzidis via All-commits 
    all-commits at lists.llvm.org
       
    Thu Dec 15 22:51:04 PST 2022
    
    
  
  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 59df56413bdc25bef53bf1629b26bd2176089088
      https://github.com/llvm/llvm-project/commit/59df56413bdc25bef53bf1629b26bd2176089088
  Author: Argyrios Kyrtzidis <kyrtzidis at apple.com>
  Date:   2022-12-15 (Thu, 15 Dec 2022)
  Changed paths:
    M clang/lib/Lex/Lexer.cpp
    M clang/test/Modules/build-fail-notes.m
    M clang/test/Modules/epic-fail.m
  Log Message:
  -----------
  [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
    
    
More information about the All-commits
mailing list