[PATCH] Add -fuse-line-directive flag to control usage of #line with -E
Reid Kleckner
rnk at google.com
Fri Sep 5 13:03:12 PDT 2014
Hi rsmith,
Currently -fms-extensions controls this behavior, which doesn't make
much sense. It means we can't identify what is and isn't a system header
when compiling our own preprocessed output, because #line doesn't
represent this information.
If someone is feeding Clang's preprocessed output to another compiler,
they can use this flag.
Fixes PR20553.
http://reviews.llvm.org/D5217
Files:
include/clang/Driver/Options.td
include/clang/Frontend/PreprocessorOutputOptions.h
lib/Frontend/CompilerInvocation.cpp
lib/Frontend/PrintPreprocessedOutput.cpp
lib/Frontend/Rewrite/InclusionRewriter.cpp
test/Frontend/rewrite-includes-line-markers.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5217.13337.patch
Type: text/x-patch
Size: 7380 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140905/d0669254/attachment.bin>
More information about the cfe-commits
mailing list