[cfe-commits] r153485 - in /cfe/trunk: include/clang/Driver/Options.td test/Driver/cpp-precomp.c
Chad Rosier
mcrosier at apple.com
Mon Mar 26 16:36:04 PDT 2012
Author: mcrosier
Date: Mon Mar 26 18:36:04 2012
New Revision: 153485
URL: http://llvm.org/viewvc/llvm-project?rev=153485&view=rev
Log:
[driver] Put -cpp-precomp and -no-cpp-precomp under the clang_ignored_f_group.
We don't currently support these options.
rdar://11120518
Added:
cfe/trunk/test/Driver/cpp-precomp.c
Modified:
cfe/trunk/include/clang/Driver/Options.td
Modified: cfe/trunk/include/clang/Driver/Options.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.td?rev=153485&r1=153484&r2=153485&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Options.td (original)
+++ cfe/trunk/include/clang/Driver/Options.td Mon Mar 26 18:36:04 2012
@@ -236,7 +236,7 @@
def combine : Flag<"-combine">, Flags<[DriverOption, Unsupported]>;
def compatibility__version : JoinedOrSeparate<"-compatibility_version">;
def coverage : Flag<"-coverage">;
-def cpp_precomp : Flag<"-cpp-precomp">;
+def cpp_precomp : Flag<"-cpp-precomp">, Group<clang_ignored_f_Group>;
def current__version : JoinedOrSeparate<"-current_version">;
def cxx_isystem : JoinedOrSeparate<"-cxx-isystem">, Group<clang_i_Group>;
def c : Flag<"-c">, Flags<[DriverOption]>,
@@ -684,7 +684,7 @@
def m_Joined : Joined<"-m">, Group<m_Group>;
def no_canonical_prefixes : Flag<"-no-canonical-prefixes">, Flags<[HelpHidden]>,
HelpText<"Use relative instead of canonical paths">;
-def no_cpp_precomp : Flag<"-no-cpp-precomp">;
+def no_cpp_precomp : Flag<"-no-cpp-precomp">, Group<clang_ignored_f_Group>;
def no_integrated_as : Flag<"-no-integrated-as">, Flags<[DriverOption]>;
def no_integrated_cpp : Flag<"-no-integrated-cpp">, Flags<[DriverOption]>;
def no__dead__strip__inits__and__terms : Flag<"-no_dead_strip_inits_and_terms">;
Added: cfe/trunk/test/Driver/cpp-precomp.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/cpp-precomp.c?rev=153485&view=auto
==============================================================================
--- cfe/trunk/test/Driver/cpp-precomp.c (added)
+++ cfe/trunk/test/Driver/cpp-precomp.c Mon Mar 26 18:36:04 2012
@@ -0,0 +1,5 @@
+// RUN: %clang -target x86_64-apple-darwin10 \
+// RUN: -Werror -cpp-precomp -fsyntax-only %s
+
+// RUN: %clang -target x86_64-apple-darwin10 \
+// RUN: -Werror -no-cpp-precomp -fsyntax-only %s
More information about the cfe-commits
mailing list