clang API Documentation

Enumerations | Functions
clang::serialized_diags Namespace Reference

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

DiagnosticConsumercreate (llvm::raw_ostream *OS, const DiagnosticOptions &diags)
 Returns a DiagnosticConsumer that serializes diagnostics to a bitcode file.

Enumeration Type Documentation

Enumerator:
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.

Enumerator:
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.


Function Documentation

DiagnosticConsumer * clang::serialized_diags::create ( llvm::raw_ostream *  OS,
const DiagnosticOptions diags 
)