]> granicus.if.org Git - clang/commitdiff
Fix typo 'with with' in diagnostic.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 21 Feb 2013 23:15:05 +0000 (23:15 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 21 Feb 2013 23:15:05 +0000 (23:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175823 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
test/Sema/attr-regparm.c
test/SemaCXX/attr-regparm.cpp

index 64e4eab373a145ef7a8cbc7a3f34051a441df79d..5e30b2edeaca9d3781ba8451713da588594defe5 100644 (file)
@@ -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<
index 642c07e7bc112720c4006b3651f7f9cfdc8eae38..ccd894e606d596438252c5b691fd23145de5a658 100644 (file)
@@ -8,4 +8,4 @@ __attribute((regparm(5,3))) int x4(void); // expected-error{{attribute takes one
 
 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}}
index 91ee613be186462b69398766798116f620e2e86d..92e651bd5eebdc985513a1e10f5e20a1a6daa766 100644 (file)
@@ -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}}