#if false #ifndef DIAGNOSTIC_H_ #define DIAGNOSTIC_H_ #include #include #include #include "SourceRange.h" namespace clang { class Diagnostic { friend class TranslationUnit; Diagnostic(CXTranslationUnit& cx_tu, CXDiagnostic& cx_diagnostic); public: class FixIt { public: FixIt(const std::string &source, const std::pair &offsets) : source(source), offsets(offsets) {} std::string source; std::pair offsets; }; static const std::string get_severity_spelling(unsigned severity); unsigned severity; std::string severity_spelling; std::string spelling; std::string path; std::pair offsets; std::vector fix_its; }; } #endif // DIAGNOSTIC_H_ #endif