Teach the diagnostics engine about the Attr type to make reporting on semantic...
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
Showing
- include/clang/AST/Attr.h 14 additions, 0 deletionsinclude/clang/AST/Attr.h
- include/clang/Basic/Diagnostic.h 2 additions, 1 deletioninclude/clang/Basic/Diagnostic.h
- include/clang/Basic/DiagnosticSemaKinds.td 1 addition, 1 deletioninclude/clang/Basic/DiagnosticSemaKinds.td
- lib/AST/ASTDiagnostic.cpp 9 additions, 0 deletionslib/AST/ASTDiagnostic.cpp
- lib/Basic/Diagnostic.cpp 1 addition, 0 deletionslib/Basic/Diagnostic.cpp
- lib/Sema/SemaDecl.cpp 3 additions, 3 deletionslib/Sema/SemaDecl.cpp
- lib/Sema/SemaDeclAttr.cpp 8 additions, 10 deletionslib/Sema/SemaDeclAttr.cpp
- test/Rewriter/missing-dllimport.c 1 addition, 1 deletiontest/Rewriter/missing-dllimport.c
- test/Sema/dllimport-dllexport.c 4 additions, 4 deletionstest/Sema/dllimport-dllexport.c
- test/SemaCXX/MicrosoftExtensions.cpp 10 additions, 10 deletionstest/SemaCXX/MicrosoftExtensions.cpp
- utils/TableGen/ClangAttrEmitter.cpp 25 additions, 0 deletionsutils/TableGen/ClangAttrEmitter.cpp
Loading
Please register or sign in to comment