From: Chad Rosier Date: Mon, 26 Mar 2012 23:36:04 +0000 (+0000) Subject: [driver] Put -cpp-precomp and -no-cpp-precomp under the clang_ignored_f_group. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f718609f41921180f09ccc6e73fe8742667608e;p=clang [driver] Put -cpp-precomp and -no-cpp-precomp under the clang_ignored_f_group. We don't currently support these options. rdar://11120518 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153485 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index 9765b51bb3..eab8e8f331 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -236,7 +236,7 @@ def client__name : JoinedOrSeparate<"-client_name">; 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; def current__version : JoinedOrSeparate<"-current_version">; def cxx_isystem : JoinedOrSeparate<"-cxx-isystem">, Group; def c : Flag<"-c">, Flags<[DriverOption]>, @@ -684,7 +684,7 @@ def m_Separate : Separate<"-m">, Group; def m_Joined : Joined<"-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; 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">; diff --git a/test/Driver/cpp-precomp.c b/test/Driver/cpp-precomp.c new file mode 100644 index 0000000000..a384a35dd9 --- /dev/null +++ b/test/Driver/cpp-precomp.c @@ -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