diff options
Diffstat (limited to 'clang/tools/libclang/CIndexDiagnostic.h')
| -rw-r--r-- | clang/tools/libclang/CIndexDiagnostic.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/tools/libclang/CIndexDiagnostic.h b/clang/tools/libclang/CIndexDiagnostic.h index 30669982370..b1c3978e0ae 100644 --- a/clang/tools/libclang/CIndexDiagnostic.h +++ b/clang/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; |

