[all-commits] [llvm/llvm-project] 677471: Apply -fmacro-prefix-map to __builtin_FILE()

Pavel Asyutchenko via All-commits all-commits at lists.llvm.org
Thu Aug 5 10:08:25 PDT 2021


  Branch: refs/heads/release/13.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 67747112b5e63462989cd0a43b6921664e14e58c
      https://github.com/llvm/llvm-project/commit/67747112b5e63462989cd0a43b6921664e14e58c
  Author: Pavel Asyutchenko <sventeam at yandex.ru>
  Date:   2021-08-05 (Thu, 05 Aug 2021)

  Changed paths:
    M clang/include/clang/Basic/LangOptions.h
    M clang/include/clang/Driver/Options.td
    M clang/include/clang/Lex/PreprocessorOptions.h
    M clang/lib/AST/Expr.cpp
    M clang/lib/Basic/LangOptions.cpp
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/lib/Lex/PPMacroExpansion.cpp
    M clang/test/CodeGenCXX/builtin-source-location.cpp

  Log Message:
  -----------
  Apply -fmacro-prefix-map to __builtin_FILE()

This matches the behavior of GCC.
Patch does not change remapping logic itself, so adding one simple smoke test should be enough.

Reviewed By: MaskRay

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

(cherry picked from commit 7df405e079c5045562c53f7a2504b85f423078be)




More information about the All-commits mailing list