summaryrefslogtreecommitdiff
path: root/include/clang/Basic/Diagnostic.h
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-12-26 18:30:57 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-12-26 18:30:57 +0000
commit574efb02fa1955f58bb0f9c7b4594cbbd972da45 (patch)
treeb414ac260997052713c0161f97d12de83d8fc303 /include/clang/Basic/Diagnostic.h
parent1cb27131cc0df5f4662abc22dc31a982bbd516c5 (diff)
downloadclang-574efb02fa1955f58bb0f9c7b4594cbbd972da45.tar.gz
clang-574efb02fa1955f58bb0f9c7b4594cbbd972da45.tar.bz2
clang-574efb02fa1955f58bb0f9c7b4594cbbd972da45.tar.xz
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
Diffstat (limited to 'include/clang/Basic/Diagnostic.h')
-rw-r--r--include/clang/Basic/Diagnostic.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Basic/Diagnostic.h b/include/clang/Basic/Diagnostic.h
index 2b0b3f9b28..97f2e80244 100644
--- a/include/clang/Basic/Diagnostic.h
+++ b/include/clang/Basic/Diagnostic.h
@@ -166,7 +166,8 @@ public:
ak_nameddecl, ///< NamedDecl *
ak_nestednamespec, ///< NestedNameSpecifier *
ak_declcontext, ///< DeclContext *
- ak_qualtype_pair ///< pair<QualType, QualType>
+ ak_qualtype_pair, ///< pair<QualType, QualType>
+ ak_attr ///< Attr *
};
/// \brief Represents on argument value, which is a union discriminated