14#ifndef LLVM_CLANG_C_CXDIAGNOSTIC_H
15#define LLVM_CLANG_C_CXDIAGNOSTIC_H
#define LLVM_CLANG_C_EXTERN_C_END
#define LLVM_CLANG_C_EXTERN_C_BEGIN
static DiagnosticBuilder Diag(DiagnosticsEngine *Diags, const LangOptions &Features, FullSourceLoc TokLoc, const char *TokBegin, const char *TokRangeBegin, const char *TokRangeEnd, unsigned DiagID)
Produce a diagnostic highlighting some portion of a literal.
CXDiagnosticDisplayOptions
Options to control the display of diagnostics.
CINDEX_LINKAGE void clang_disposeDiagnostic(CXDiagnostic Diagnostic)
Destroy a diagnostic.
CINDEX_LINKAGE unsigned clang_getDiagnosticCategory(CXDiagnostic)
Retrieve the category number for this diagnostic.
CINDEX_LINKAGE void clang_disposeDiagnosticSet(CXDiagnosticSet Diags)
Release a CXDiagnosticSet and all of its contained diagnostics.
CINDEX_LINKAGE CXDiagnosticSet clang_getChildDiagnostics(CXDiagnostic D)
Retrieve the child diagnostics of a CXDiagnostic.
CINDEX_LINKAGE CXString clang_getDiagnosticSpelling(CXDiagnostic)
Retrieve the text of the given diagnostic.
void * CXDiagnosticSet
A group of CXDiagnostics.
void * CXDiagnostic
A single diagnostic, containing the diagnostic's severity, location, text, source ranges,...
CINDEX_LINKAGE unsigned clang_getNumDiagnosticsInSet(CXDiagnosticSet Diags)
Determine the number of diagnostics in a CXDiagnosticSet.
CINDEX_LINKAGE CXString clang_formatDiagnostic(CXDiagnostic Diagnostic, unsigned Options)
Format the given diagnostic in a manner that is suitable for display.
CINDEX_LINKAGE unsigned clang_defaultDiagnosticDisplayOptions(void)
Retrieve the set of display options most similar to the default behavior of the clang compiler.
CINDEX_LINKAGE CXString clang_getDiagnosticCategoryText(CXDiagnostic)
Retrieve the diagnostic category text for a given diagnostic.
CINDEX_LINKAGE CXString clang_getDiagnosticOption(CXDiagnostic Diag, CXString *Disable)
Retrieve the name of the command-line option that enabled this diagnostic.
CINDEX_LINKAGE unsigned clang_getDiagnosticNumRanges(CXDiagnostic)
Determine the number of source ranges associated with the given diagnostic.
CINDEX_LINKAGE CXDiagnostic clang_getDiagnosticInSet(CXDiagnosticSet Diags, unsigned Index)
Retrieve a diagnostic associated with the given CXDiagnosticSet.
CINDEX_LINKAGE CXDiagnosticSet clang_loadDiagnostics(const char *file, enum CXLoadDiag_Error *error, CXString *errorString)
Deserialize a set of diagnostics from a Clang diagnostics bitcode file.
CINDEX_LINKAGE CXSourceRange clang_getDiagnosticRange(CXDiagnostic Diagnostic, unsigned Range)
Retrieve a source range associated with the diagnostic.
CINDEX_LINKAGE CXSourceLocation clang_getDiagnosticLocation(CXDiagnostic)
Retrieve the source location of the given diagnostic.
CXDiagnosticSeverity
Describes the severity of a particular diagnostic.
CINDEX_LINKAGE CXString clang_getDiagnosticFixIt(CXDiagnostic Diagnostic, unsigned FixIt, CXSourceRange *ReplacementRange)
Retrieve the replacement information for a given fix-it.
CINDEX_DEPRECATED CINDEX_LINKAGE CXString clang_getDiagnosticCategoryName(unsigned Category)
Retrieve the name of a particular diagnostic category.
CXLoadDiag_Error
Describes the kind of error that occurred (if any) in a call to clang_loadDiagnostics.
CINDEX_LINKAGE unsigned clang_getDiagnosticNumFixIts(CXDiagnostic Diagnostic)
Determine the number of fix-it hints associated with the given diagnostic.
CINDEX_LINKAGE enum CXDiagnosticSeverity clang_getDiagnosticSeverity(CXDiagnostic)
Determine the severity of the given diagnostic.
@ CXDiagnostic_DisplayColumn
If displaying the source-location information of the diagnostic, also include the column number.
@ CXDiagnostic_DisplaySourceLocation
Display the source-location information where the diagnostic was located.
@ CXDiagnostic_DisplayOption
Display the option name associated with this diagnostic, if any.
@ CXDiagnostic_DisplayCategoryId
Display the category number associated with this diagnostic, if any.
@ CXDiagnostic_DisplayCategoryName
Display the category name associated with this diagnostic, if any.
@ CXDiagnostic_DisplaySourceRanges
If displaying the source-location information of the diagnostic, also include information about sourc...
@ CXDiagnostic_Fatal
This diagnostic indicates that the code is ill-formed such that future parser recovery is unlikely to...
@ CXDiagnostic_Ignored
A diagnostic that has been suppressed, e.g., by a command-line option.
@ CXDiagnostic_Note
This diagnostic is a note that should be attached to the previous (non-note) diagnostic.
@ CXDiagnostic_Error
This diagnostic indicates that the code is ill-formed.
@ CXDiagnostic_Warning
This diagnostic indicates suspicious code that may not be wrong.
@ CXLoadDiag_None
Indicates that no error occurred.
@ CXLoadDiag_Unknown
Indicates that an unknown error occurred while attempting to deserialize diagnostics.
@ CXLoadDiag_CannotLoad
Indicates that the file containing the serialized diagnostics could not be opened.
@ CXLoadDiag_InvalidFile
Indicates that the serialized diagnostics file is invalid or corrupt.
Identifies a specific source location within a translation unit.
Identifies a half-open character range in the source code.