clang API Documentation
Enumerations | |
| enum | BlockIDs { BLOCK_META = llvm::bitc::FIRST_APPLICATION_BLOCKID, BLOCK_DIAG } |
| enum | RecordIDs { RECORD_VERSION = 1, RECORD_DIAG, RECORD_SOURCE_RANGE, RECORD_DIAG_FLAG, RECORD_CATEGORY, RECORD_FILENAME, RECORD_FIXIT, RECORD_FIRST = RECORD_VERSION, RECORD_LAST = RECORD_FIXIT } |
Functions | |
| DiagnosticConsumer * | create (llvm::raw_ostream *OS, const DiagnosticOptions &diags) |
| Returns a DiagnosticConsumer that serializes diagnostics to a bitcode file. | |
| BLOCK_META |
A top-level block which represents any meta data associated with the diagostics, including versioning of the format. |
| BLOCK_DIAG |
The this block acts as a container for all the information for a specific diagnostic. |
Definition at line 26 of file SerializedDiagnosticPrinter.h.
| RECORD_VERSION | |
| RECORD_DIAG | |
| RECORD_SOURCE_RANGE | |
| RECORD_DIAG_FLAG | |
| RECORD_CATEGORY | |
| RECORD_FILENAME | |
| RECORD_FIXIT | |
| RECORD_FIRST | |
| RECORD_LAST |
Definition at line 36 of file SerializedDiagnosticPrinter.h.
| DiagnosticConsumer * clang::serialized_diags::create | ( | llvm::raw_ostream * | OS, |
| const DiagnosticOptions & | diags | ||
| ) |
Returns a DiagnosticConsumer that serializes diagnostics to a bitcode file.
The created DiagnosticConsumer is designed for quick and lightweight transfer of of diagnostics to the enclosing build system (e.g., an IDE). This allows wrapper tools for Clang to get diagnostics from Clang (via libclang) without needing to parse Clang's command line output.
Definition at line 202 of file SerializedDiagnosticPrinter.cpp.
Referenced by clang::CodeGen::CodeGenTypes::arrangeFunctionType(), clang::CodeGen::CodeGenFunction::BuildByRefType(), clang::CodeGen::CodeGenTypes::ConvertRecordDeclType(), clang::CodeGen::CodeGenTypes::ConvertType(), clang::SourceManager::createExpansionLoc(), clang::AnalysisDeclContext::getAnalysis(), clang::CodeGen::CodeGenModule::getBlockDescriptorType(), clang::CodeGen::CodeGenModule::getGenericBlockLiteralType(), clang::tooling::newFrontendActionFactory(), SetupSerializedDiagnostics(), and clang::ento::ConditionBRVisitor::VisitNode().