diff options
| author | Hans Wennborg <hans@hanshq.net> | 2015-04-15 10:02:21 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2015-04-15 10:02:21 +0000 |
| commit | 5615f6bcd5fdd2719e541c8df2c48b6f062f29da (patch) | |
| tree | a8439c3ecd79edbb8fcf88e286f716f51dce0716 | |
| parent | 7f6b22ee841ca1023acd4b0004b865c14947fef4 (diff) | |
| download | bcm5719-llvm-5615f6bcd5fdd2719e541c8df2c48b6f062f29da.tar.gz bcm5719-llvm-5615f6bcd5fdd2719e541c8df2c48b6f062f29da.zip | |
clang-cl: support -fsyntax-only (PR23197)
This might help running Clang tooling (which appends this option)
with clang-cl command-lines.
llvm-svn: 234990
| -rw-r--r-- | clang/include/clang/Driver/Options.td | 3 | ||||
| -rw-r--r-- | clang/test/Driver/cl-options.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index 24674c70939..714943d2b18 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -934,7 +934,8 @@ def fstrict_enums : Flag<["-"], "fstrict-enums">, Group<f_Group>, Flags<[CC1Opti HelpText<"Enable optimizations based on the strict definition of an enum's " "value range">; def fstrict_overflow : Flag<["-"], "fstrict-overflow">, Group<f_Group>; -def fsyntax_only : Flag<["-"], "fsyntax-only">, Flags<[DriverOption,CC1Option]>, Group<Action_Group>; +def fsyntax_only : Flag<["-"], "fsyntax-only">, + Flags<[DriverOption,CoreOption,CC1Option]>, Group<Action_Group>; def ftabstop_EQ : Joined<["-"], "ftabstop=">, Group<f_Group>; def ftemplate_depth_EQ : Joined<["-"], "ftemplate-depth=">, Group<f_Group>; def ftemplate_depth_ : Joined<["-"], "ftemplate-depth-">, Group<f_Group>; diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c index 032f1cd9e0a..e36462dab62 100644 --- a/clang/test/Driver/cl-options.c +++ b/clang/test/Driver/cl-options.c @@ -354,6 +354,7 @@ // RUN: -fmsc-version=1800 \ // RUN: -fno-strict-aliasing \ // RUN: -fstrict-aliasing \ +// RUN: -fsyntax-only \ // RUN: -mllvm -disable-llvm-optzns \ // RUN: -Wunused-variable \ // RUN: -fmacro-backtrace-limit=0 \ |

