Svenny updated this revision to Diff 364217.
Svenny added a comment.
Herald added a subscriber: dang.
Updated ffile-prefix-map and fmacro-prefix-map in
clang/include/clang/Driver/Options.td.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107393/new/
https://reviews.llvm.org/D107393
Fil
Svenny added a comment.
Great! My commit author string is `Pavel Asyutchenko `.
I have an even uglier hack to work around this: to offset the value of
`__builtin_FILE()` by compile-time calculated location of some known substring
like `src` or `include`.
CHANGES SINCE LAST ACTION
https://re
Svenny marked an inline comment as done.
Svenny added a comment.
Could you please land it? I don't have commit access.
Also, any chance this patch can get into 13.x release branch? Not sure if it
counts as a feature or a bugfix :)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107393/ne
Svenny updated this revision to Diff 364195.
Svenny added a comment.
Moved new test to CodeGenCXX/builtin-source-location.cpp.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107393/new/
https://reviews.llvm.org/D107393
Files:
clang/include/clang/Basic/LangOptions.h
clang/include/cla
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 n