#include "CIndexDiagnostic.h"
#include "CIndexer.h"
#include "CXTranslationUnit.h"
#include "CXSourceLocation.h"
#include "CXString.h"
#include "clang/Basic/DiagnosticOptions.h"
#include "clang/Frontend/ASTUnit.h"
#include "clang/Frontend/DiagnosticRenderer.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/raw_ostream.h"
usingnamespaceclang;
usingnamespaceclang::cxloc;
usingnamespaceclang::cxdiag;
usingnamespacellvm;
CXDiagnosticSetImpl::~CXDiagnosticSetImpl() { … }
void
CXDiagnosticSetImpl::appendDiagnostic(std::unique_ptr<CXDiagnosticImpl> D) { … }
CXDiagnosticImpl::~CXDiagnosticImpl() { … }
namespace {
class CXDiagnosticCustomNoteImpl : public CXDiagnosticImpl { … };
class CXDiagnosticRenderer : public DiagnosticNoteRenderer { … };
}
CXDiagnosticSetImpl *cxdiag::lazyCreateDiags(CXTranslationUnit TU,
bool checkIfChanged) { … }
unsigned clang_getNumDiagnostics(CXTranslationUnit Unit) { … }
CXDiagnostic clang_getDiagnostic(CXTranslationUnit Unit, unsigned Index) { … }
CXDiagnosticSet clang_getDiagnosticSetFromTU(CXTranslationUnit Unit) { … }
void clang_disposeDiagnostic(CXDiagnostic Diagnostic) { … }
CXString clang_formatDiagnostic(CXDiagnostic Diagnostic, unsigned Options) { … }
unsigned clang_defaultDiagnosticDisplayOptions() { … }
enum CXDiagnosticSeverity clang_getDiagnosticSeverity(CXDiagnostic Diag) { … }
CXSourceLocation clang_getDiagnosticLocation(CXDiagnostic Diag) { … }
CXString clang_getDiagnosticSpelling(CXDiagnostic Diag) { … }
CXString clang_getDiagnosticOption(CXDiagnostic Diag, CXString *Disable) { … }
unsigned clang_getDiagnosticCategory(CXDiagnostic Diag) { … }
CXString clang_getDiagnosticCategoryName(unsigned Category) { … }
CXString clang_getDiagnosticCategoryText(CXDiagnostic Diag) { … }
unsigned clang_getDiagnosticNumRanges(CXDiagnostic Diag) { … }
CXSourceRange clang_getDiagnosticRange(CXDiagnostic Diag, unsigned Range) { … }
unsigned clang_getDiagnosticNumFixIts(CXDiagnostic Diag) { … }
CXString clang_getDiagnosticFixIt(CXDiagnostic Diag, unsigned FixIt,
CXSourceRange *ReplacementRange) { … }
void clang_disposeDiagnosticSet(CXDiagnosticSet Diags) { … }
CXDiagnostic clang_getDiagnosticInSet(CXDiagnosticSet Diags,
unsigned Index) { … }
CXDiagnosticSet clang_getChildDiagnostics(CXDiagnostic Diag) { … }
unsigned clang_getNumDiagnosticsInSet(CXDiagnosticSet Diags) { … }