clang API Documentation
#include "clang/Frontend/SerializedDiagnosticPrinter.h"
#include "clang/Frontend/SerializedDiagnosticReader.h"
#include "clang/Frontend/SerializedDiagnostics.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/DiagnosticOptions.h"
#include "clang/Basic/FileManager.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/Version.h"
#include "clang/Frontend/DiagnosticRenderer.h"
#include "clang/Frontend/FrontendDiagnostic.h"
#include "clang/Frontend/TextDiagnosticPrinter.h"
#include "clang/Lex/Lexer.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/raw_ostream.h"
#include <vector>
Go to the source code of this file.
Namespaces | |
namespace | clang |
namespace | clang::serialized_diags |
Defines | |
#define | CASE(X) case DiagnosticsEngine::X: return serialized_diags::X; |
Functions | |
std::unique_ptr < DiagnosticConsumer > | clang::serialized_diags::create (StringRef OutputFile, DiagnosticOptions *Diags, bool MergeChildRecords=false) |
Returns a DiagnosticConsumer that serializes diagnostics to a bitcode file. | |
static void | EmitBlockID (unsigned ID, const char *Name, llvm::BitstreamWriter &Stream, RecordDataImpl &Record) |
Emits a block ID in the BLOCKINFO block. | |
static void | EmitRecordID (unsigned ID, const char *Name, llvm::BitstreamWriter &Stream, RecordDataImpl &Record) |
Emits a record ID in the BLOCKINFO block. | |
static void | AddSourceLocationAbbrev (llvm::BitCodeAbbrev *Abbrev) |
static void | AddRangeLocationAbbrev (llvm::BitCodeAbbrev *Abbrev) |
static serialized_diags::Level | getStableLevel (DiagnosticsEngine::Level Level) |
#define CASE | ( | X | ) | case DiagnosticsEngine::X: return serialized_diags::X; |
static void AddRangeLocationAbbrev | ( | llvm::BitCodeAbbrev * | Abbrev | ) | [static] |
Definition at line 437 of file SerializedDiagnosticPrinter.cpp.
References AddSourceLocationAbbrev().
static void AddSourceLocationAbbrev | ( | llvm::BitCodeAbbrev * | Abbrev | ) | [static] |
Definition at line 429 of file SerializedDiagnosticPrinter.cpp.
Referenced by AddRangeLocationAbbrev().
static void EmitBlockID | ( | unsigned | ID, |
const char * | Name, | ||
llvm::BitstreamWriter & | Stream, | ||
RecordDataImpl & | Record | ||
) | [static] |
Emits a block ID in the BLOCKINFO block.
Definition at line 321 of file SerializedDiagnosticPrinter.cpp.
static void EmitRecordID | ( | unsigned | ID, |
const char * | Name, | ||
llvm::BitstreamWriter & | Stream, | ||
RecordDataImpl & | Record | ||
) | [static] |
Emits a record ID in the BLOCKINFO block.
Definition at line 341 of file SerializedDiagnosticPrinter.cpp.
static serialized_diags::Level getStableLevel | ( | DiagnosticsEngine::Level | Level | ) | [static] |
Definition at line 641 of file SerializedDiagnosticPrinter.cpp.
References CASE, clang::diag::Error, clang::diag::Fatal, clang::diag::Ignored, clang::serialized_diags::Note, clang::diag::Remark, and clang::diag::Warning.