You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
612 B

11 years ago
#ifndef DIAGNOSTIC_H_
#define DIAGNOSTIC_H_
#include <string>
11 years ago
#include <vector>
#include <clang-c/Index.h>
#include "TranslationUnit.h"
namespace clang {
class Diagnostic {
public:
class LocationData {
public:
unsigned line, column, offset;
};
11 years ago
Diagnostic(clang::TranslationUnit& tu, CXDiagnostic& clang_diagnostic);
11 years ago
static const std::string get_severity_spelling(unsigned severity);
unsigned severity;
std::string severity_spelling;
std::string spelling;
std::string path;
LocationData start_location, end_location;
};
}
11 years ago
#endif // DIAGNOSTIC_H_