r198076 - Removed a string literal for a diagnostic, and updated the diagnostic to not manually quote. No functional changes intended.

Aaron Ballman aaron at aaronballman.com
Fri Dec 27 08:30:48 PST 2013


Author: aaronballman
Date: Fri Dec 27 10:30:46 2013
New Revision: 198076

URL: http://llvm.org/viewvc/llvm-project?rev=198076&view=rev
Log:
Removed a string literal for a diagnostic, and updated the diagnostic to not manually quote. No functional changes intended.

Modified:
    cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
    cfe/trunk/lib/Sema/SemaDeclAttr.cpp

Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=198076&r1=198075&r2=198076&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Fri Dec 27 10:30:46 2013
@@ -2362,7 +2362,7 @@ def err_mode_not_primitive : Error<
 def err_mode_wrong_type : Error<
   "type of machine mode does not match type of base type">;
 def err_attr_wrong_decl : Error<
-  "'%0' attribute invalid on this declaration, requires typedef or value">;
+  "%0 attribute invalid on this declaration, requires typedef or value">;
 def warn_attribute_nonnull_no_pointers : Warning<
   "'nonnull' attribute applied to function with no pointer arguments">,
   InGroup<IgnoredAttributes>;

Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclAttr.cpp?rev=198076&r1=198075&r2=198076&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclAttr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclAttr.cpp Fri Dec 27 10:30:46 2013
@@ -2959,7 +2959,7 @@ static void handleModeAttr(Sema &S, Decl
     OldTy = VD->getType();
   else {
     S.Diag(D->getLocation(), diag::err_attr_wrong_decl)
-      << "mode" << Attr.getRange();
+      << Attr.getName() << Attr.getRange();
     return;
   }
 





More information about the cfe-commits mailing list