diff options
Diffstat (limited to 'tools/libclang/CIndexDiagnostic.h')
-rw-r--r-- | tools/libclang/CIndexDiagnostic.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/libclang/CIndexDiagnostic.h b/tools/libclang/CIndexDiagnostic.h index 3066998237..b1c3978e0a 100644 --- a/tools/libclang/CIndexDiagnostic.h +++ b/tools/libclang/CIndexDiagnostic.h @@ -73,7 +73,10 @@ public: /// \brief Return the category of the diagnostic. virtual unsigned getCategory() const = 0; - + + /// \brief Return the category string of the diagnostic. + virtual CXString getCategoryText() const = 0; + /// \brief Return the number of source ranges for the diagnostic. virtual unsigned getNumRanges() const = 0; @@ -132,6 +135,9 @@ struct CXStoredDiagnostic : public CXDiagnosticImpl { /// \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; |