[PATCH] D107393: Apply -fmacro-prefix-map to __builtin_FILE()

Pavel Asyutchenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 3 13:00:20 PDT 2021


Svenny created this revision.
Svenny added reviewers: dankm, MaskRay, rnk, Lekensteyn, echristo.
Svenny added a project: clang.
Herald added a subscriber: dexonsmith.
Svenny requested review of this revision.
Herald added a subscriber: cfe-commits.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D107393

Files:
  clang/include/clang/Basic/LangOptions.h
  clang/include/clang/Lex/PreprocessorOptions.h
  clang/lib/AST/Expr.cpp
  clang/lib/Basic/LangOptions.cpp
  clang/lib/CodeGen/CodeGenModule.cpp
  clang/lib/Frontend/CompilerInvocation.cpp
  clang/lib/Lex/PPMacroExpansion.cpp
  clang/test/CodeGen/macro-prefix-map.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107393.363838.patch
Type: text/x-patch
Size: 6998 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210803/9b07b02c/attachment.bin>


More information about the cfe-commits mailing list