]> granicus.if.org Git - clang/commitdiff
clang-cl: support -fsyntax-only (PR23197)
authorHans Wennborg <hans@hanshq.net>
Wed, 15 Apr 2015 10:02:21 +0000 (10:02 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 15 Apr 2015 10:02:21 +0000 (10:02 +0000)
This might help running Clang tooling (which appends this option)
with clang-cl command-lines.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@234990 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/Options.td
test/Driver/cl-options.c

index 24674c70939992bfb2e7e6f0a17ed45d73b4d3e2..714943d2b187661c4b05ec8ba86f3eeeb8273e41 100644 (file)
@@ -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>;
index 032f1cd9e0a1341bb85027d829f0ad17bdb275ae..e36462dab621cd292a9d672cefd2b303810fc4ba 100644 (file)
 // 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 \