[cfe-commits] r159208 - in /cfe/trunk: include/clang/Driver/Options.td test/Driver/apple-kext-i386.cpp
Chad Rosier
mcrosier at apple.com
Tue Jun 26 09:57:41 PDT 2012
Author: mcrosier
Date: Tue Jun 26 11:57:41 2012
New Revision: 159208
URL: http://llvm.org/viewvc/llvm-project?rev=159208&view=rev
Log:
[driver] Make -serialize-diagnostics (one dash) and alias for
--serialize-diagnostics.
rdar://11734800
Modified:
cfe/trunk/include/clang/Driver/Options.td
cfe/trunk/test/Driver/apple-kext-i386.cpp
Modified: cfe/trunk/include/clang/Driver/Options.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.td?rev=159208&r1=159207&r2=159208&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Options.td (original)
+++ cfe/trunk/include/clang/Driver/Options.td Tue Jun 26 11:57:41 2012
@@ -1123,6 +1123,7 @@
def _write_user_dependencies : Flag<"--write-user-dependencies">, Alias<MMD>;
def _ : Joined<"--">, Flags<[Unsupported]>;
def mieee_rnd_near : Flag<"-mieee-rnd-near">, Group<m_hexagon_Features_Group>;
+def serialize_diags : Separate<"-serialize-diagnostics">, Alias<_serialize_diags>;
// Special internal option to handle -Xlinker --no-demangle.
def Z_Xlinker__no_demangle : Flag<"-Z-Xlinker-no-demangle">,
Modified: cfe/trunk/test/Driver/apple-kext-i386.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/apple-kext-i386.cpp?rev=159208&r1=159207&r2=159208&view=diff
==============================================================================
--- cfe/trunk/test/Driver/apple-kext-i386.cpp (original)
+++ cfe/trunk/test/Driver/apple-kext-i386.cpp Tue Jun 26 11:57:41 2012
@@ -41,6 +41,11 @@
// CHECK-UNSUPPORTED2: cc1plus"
// CHECK-UNSUPPORTED2-NOT: "-Wconstant-logical-operand"
+// Check that -serialize-diagnostics does not cause an "argument unused" error.
+// RUN: %clang -target i386-apple-darwin10 \
+// RUN: -Wall -fapple-kext -### -serialize-diagnostics %t.dia -c %s 2>&1 | \
+// RUN: FileCheck --check-prefix=CHECK-UNUSED %s
+
// Check that --serialize-diagnostics does not cause an "argument unused" error.
// RUN: %clang -target i386-apple-darwin10 \
// RUN: -Wall -fapple-kext -### --serialize-diagnostics %t.dia -c %s 2>&1 | \
More information about the cfe-commits
mailing list