r198050 - Getting rid of a string literal in favor of the generalized diagnostic.

Aaron Ballman aaron at aaronballman.com
Thu Dec 26 08:13:51 PST 2013


Author: aaronballman
Date: Thu Dec 26 10:13:50 2013
New Revision: 198050

URL: http://llvm.org/viewvc/llvm-project?rev=198050&view=rev
Log:
Getting rid of a string literal in favor of the generalized diagnostic.

Modified:
    cfe/trunk/lib/Sema/SemaDeclAttr.cpp

Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclAttr.cpp?rev=198050&r1=198049&r2=198050&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclAttr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclAttr.cpp Thu Dec 26 10:13:50 2013
@@ -2555,7 +2555,7 @@ static void handleFormatAttr(Sema &S, De
   
   if (Kind == InvalidFormat) {
     S.Diag(Attr.getLoc(), diag::warn_attribute_type_not_supported)
-      << "format" << II->getName();
+      << Attr.getName() << II->getName();
     return;
   }
 





More information about the cfe-commits mailing list