r175823 - Fix typo 'with with' in diagnostic.

Richard Smith richard-llvm at metafoo.co.uk
Thu Feb 21 15:15:05 PST 2013


Author: rsmith
Date: Thu Feb 21 17:15:05 2013
New Revision: 175823

URL: http://llvm.org/viewvc/llvm-project?rev=175823&view=rev
Log:
Fix typo 'with with' in diagnostic.

Modified:
    cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
    cfe/trunk/test/Sema/attr-regparm.c
    cfe/trunk/test/SemaCXX/attr-regparm.cpp

Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=175823&r1=175822&r2=175823&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Thu Feb 21 17:15:05 2013
@@ -1891,7 +1891,7 @@ def err_cconv_knr : Error<
   "function with no prototype cannot use %0 calling convention">;
 def err_cconv_varargs : Error<
   "variadic function cannot use %0 calling convention">;
-def err_regparm_mismatch : Error<"function declared with with regparm(%0) "
+def err_regparm_mismatch : Error<"function declared with regparm(%0) "
   "attribute was previously declared "
   "%plural{0:without the regparm|:with the regparm(%1)}1 attribute">;
 def err_returns_retained_mismatch : Error<

Modified: cfe/trunk/test/Sema/attr-regparm.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/attr-regparm.c?rev=175823&r1=175822&r2=175823&view=diff
==============================================================================
--- cfe/trunk/test/Sema/attr-regparm.c (original)
+++ cfe/trunk/test/Sema/attr-regparm.c Thu Feb 21 17:15:05 2013
@@ -8,4 +8,4 @@ __attribute((regparm(5,3))) int x4(void)
 
 void __attribute__((regparm(3))) x5(int);
 void x5(int); // expected-note{{previous declaration is here}}
-void __attribute__((regparm(2))) x5(int); // expected-error{{function declared with with regparm(2) attribute was previously declared with the regparm(3) attribute}}
+void __attribute__((regparm(2))) x5(int); // expected-error{{function declared with regparm(2) attribute was previously declared with the regparm(3) attribute}}

Modified: cfe/trunk/test/SemaCXX/attr-regparm.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/attr-regparm.cpp?rev=175823&r1=175822&r2=175823&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/attr-regparm.cpp (original)
+++ cfe/trunk/test/SemaCXX/attr-regparm.cpp Thu Feb 21 17:15:05 2013
@@ -11,5 +11,5 @@ struct X0 {
 
 void X0::f0() { }
 void __attribute__((regparm(3))) X0::f1() { }
-void __attribute__((regparm(2))) X0::f2() { } // expected-error{{function declared with with regparm(2) attribute was previously declared with the regparm(3) attribute}}
-void __attribute__((regparm(2))) X0::f3() { } // expected-error{{function declared with with regparm(2) attribute was previously declared without the regparm attribute}}
+void __attribute__((regparm(2))) X0::f2() { } // expected-error{{function declared with regparm(2) attribute was previously declared with the regparm(3) attribute}}
+void __attribute__((regparm(2))) X0::f3() { } // expected-error{{function declared with regparm(2) attribute was previously declared without the regparm attribute}}





More information about the cfe-commits mailing list