summaryrefslogtreecommitdiffstats
path: root/tools/libclang/CXLoadedDiagnostic.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/libclang/CXLoadedDiagnostic.h')
-rw-r--r--tools/libclang/CXLoadedDiagnostic.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/libclang/CXLoadedDiagnostic.h b/tools/libclang/CXLoadedDiagnostic.h
index 9eff144901..d4a321e0e1 100644
--- a/tools/libclang/CXLoadedDiagnostic.h
+++ b/tools/libclang/CXLoadedDiagnostic.h
@@ -43,6 +43,9 @@ public:
/// \brief Return the category of the diagnostic.
virtual unsigned getCategory() const;
+ /// \brief Return the category string of the diagnostic.
+ virtual CXString getCategoryText() const;
+
/// \brief Return the number of source ranges for the diagnostic.
virtual unsigned getNumRanges() const;
@@ -82,6 +85,7 @@ public:
std::vector<std::pair<CXSourceRange, CXString> > FixIts;
llvm::StringRef Spelling;
llvm::StringRef DiagOption;
+ llvm::StringRef CategoryText;
unsigned severity;
unsigned category;
};