]> granicus.if.org Git - clang/commit
Teach the diagnostics engine about the Attr type to make reporting on semantic attrib...
authorAaron Ballman <aaron@aaronballman.com>
Thu, 26 Dec 2013 18:30:57 +0000 (18:30 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 26 Dec 2013 18:30:57 +0000 (18:30 +0000)
commit574efb02fa1955f58bb0f9c7b4594cbbd972da45
treeb414ac260997052713c0161f97d12de83d8fc303
parent1cb27131cc0df5f4662abc22dc31a982bbd516c5
Teach the diagnostics engine about the Attr type to make reporting on semantic attributes easier (and not require hard-coded strings). This requires a getSpelling() function on the Attr class, which is table-driven. Updates a handful of cases where a hard-coded string was being used to test the functionality out. Updating associated test cases for the improved quoting.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198055 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Attr.h
include/clang/Basic/Diagnostic.h
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/ASTDiagnostic.cpp
lib/Basic/Diagnostic.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclAttr.cpp
test/Rewriter/missing-dllimport.c
test/Sema/dllimport-dllexport.c
test/SemaCXX/MicrosoftExtensions.cpp
utils/TableGen/ClangAttrEmitter.cpp