diff options
| author | Reid Kleckner <reid@kleckner.net> | 2015-02-26 00:17:25 +0000 |
|---|---|---|
| committer | Reid Kleckner <reid@kleckner.net> | 2015-02-26 00:17:25 +0000 |
| commit | 1df0fea5939970f6ba4e77aa00a0d2ecadbad3ec (patch) | |
| tree | fdf890a5b7d833fbef5cc6489e7f64aba4bdef4c /clang/test/Lexer | |
| parent | ebdfc00995264d2cd3795824c8074e03e6322d35 (diff) | |
| download | bcm5719-llvm-1df0fea5939970f6ba4e77aa00a0d2ecadbad3ec.tar.gz bcm5719-llvm-1df0fea5939970f6ba4e77aa00a0d2ecadbad3ec.zip | |
Add -fuse-line-directive flag to control usage of #line with -E
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.
Reviewers: rsmith
Differential Revision: http://reviews.llvm.org/D5217
llvm-svn: 230587
Diffstat (limited to 'clang/test/Lexer')
| -rw-r--r-- | clang/test/Lexer/pragma-operators.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Lexer/pragma-operators.cpp b/clang/test/Lexer/pragma-operators.cpp index 7270f1eed20..4d288c9372d 100644 --- a/clang/test/Lexer/pragma-operators.cpp +++ b/clang/test/Lexer/pragma-operators.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fms-extensions -std=c++11 -E %s | FileCheck %s +// RUN: %clang_cc1 -fms-extensions -std=c++11 -E %s -fuse-line-directives | FileCheck %s // Test that we properly expand the C99 _Pragma and Microsoft __pragma // into #pragma directives, with newlines where needed. <rdar://problem/8412013> |

