|
|
|
@ -10,6 +10,14 @@ namespace clangmm { |
|
|
|
friend class TranslationUnit; |
|
|
|
friend class TranslationUnit; |
|
|
|
Diagnostic(CXTranslationUnit& cx_tu, CXDiagnostic& cx_diagnostic); |
|
|
|
Diagnostic(CXTranslationUnit& cx_tu, CXDiagnostic& cx_diagnostic); |
|
|
|
public: |
|
|
|
public: |
|
|
|
|
|
|
|
enum class Severity { |
|
|
|
|
|
|
|
Ignored = 0, |
|
|
|
|
|
|
|
Note, |
|
|
|
|
|
|
|
Warning, |
|
|
|
|
|
|
|
Error, |
|
|
|
|
|
|
|
Fatal |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
class FixIt { |
|
|
|
class FixIt { |
|
|
|
public: |
|
|
|
public: |
|
|
|
FixIt(const std::string &source, const std::pair<clangmm::Offset, clangmm::Offset> &offsets): |
|
|
|
FixIt(const std::string &source, const std::pair<clangmm::Offset, clangmm::Offset> &offsets): |
|
|
|
@ -18,10 +26,7 @@ namespace clangmm { |
|
|
|
std::pair<clangmm::Offset, clangmm::Offset> offsets; |
|
|
|
std::pair<clangmm::Offset, clangmm::Offset> offsets; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
static const std::string get_severity_spelling(unsigned severity); |
|
|
|
Severity severity; |
|
|
|
|
|
|
|
|
|
|
|
unsigned severity; |
|
|
|
|
|
|
|
std::string severity_spelling; |
|
|
|
|
|
|
|
std::string spelling; |
|
|
|
std::string spelling; |
|
|
|
std::string path; |
|
|
|
std::string path; |
|
|
|
std::pair<clangmm::Offset, clangmm::Offset> offsets; |
|
|
|
std::pair<clangmm::Offset, clangmm::Offset> offsets; |
|
|
|
|