A base class that handles reading serialized diagnostics from a file.
More...
#include "clang/Frontend/SerializedDiagnosticReader.h"
|
virtual std::error_code | visitStartOfDiagnostic () |
| Visit the start of a diagnostic block.
|
|
virtual std::error_code | visitEndOfDiagnostic () |
| Visit the end of a diagnostic block.
|
|
virtual std::error_code | visitCategoryRecord (unsigned ID, StringRef Name) |
| Visit a category. This associates the category ID to a Name .
|
|
virtual std::error_code | visitDiagFlagRecord (unsigned ID, StringRef Name) |
| Visit a flag. This associates the flag's ID to a Name .
|
|
virtual std::error_code | visitDiagnosticRecord (unsigned Severity, const Location &Location, unsigned Category, unsigned Flag, StringRef Message) |
| Visit a diagnostic.
|
|
virtual std::error_code | visitFilenameRecord (unsigned ID, unsigned Size, unsigned Timestamp, StringRef Name) |
| Visit a filename. This associates the file's ID to a Name .
|
|
virtual std::error_code | visitFixitRecord (const Location &Start, const Location &End, StringRef Text) |
| Visit a fixit hint.
|
|
virtual std::error_code | visitSourceRangeRecord (const Location &Start, const Location &End) |
| Visit a source range.
|
|
virtual std::error_code | visitVersionRecord (unsigned Version) |
| Visit the version of the set of diagnostics.
|
|
A base class that handles reading serialized diagnostics from a file.
Subclasses should override the visit* methods with their logic for handling the various constructs that are found in serialized diagnostics.
Definition at line 60 of file SerializedDiagnosticReader.h.
◆ SerializedDiagnosticReader()
clang::serialized_diags::SerializedDiagnosticReader::SerializedDiagnosticReader |
( |
| ) |
|
|
default |
◆ ~SerializedDiagnosticReader()
virtual clang::serialized_diags::SerializedDiagnosticReader::~SerializedDiagnosticReader |
( |
| ) |
|
|
virtualdefault |
◆ readDiagnostics()
std::error_code clang::serialized_diags::SerializedDiagnosticReader::readDiagnostics |
( |
StringRef |
File | ) |
|
Read the diagnostics in File
.
◆ visitCategoryRecord()
virtual std::error_code clang::serialized_diags::SerializedDiagnosticReader::visitCategoryRecord |
( |
unsigned |
ID, |
|
|
StringRef |
Name |
|
) |
| |
|
inlineprotectedvirtual |
◆ visitDiagFlagRecord()
virtual std::error_code clang::serialized_diags::SerializedDiagnosticReader::visitDiagFlagRecord |
( |
unsigned |
ID, |
|
|
StringRef |
Name |
|
) |
| |
|
inlineprotectedvirtual |
◆ visitDiagnosticRecord()
virtual std::error_code clang::serialized_diags::SerializedDiagnosticReader::visitDiagnosticRecord |
( |
unsigned |
Severity, |
|
|
const Location & |
Location, |
|
|
unsigned |
Category, |
|
|
unsigned |
Flag, |
|
|
StringRef |
Message |
|
) |
| |
|
inlineprotectedvirtual |
◆ visitEndOfDiagnostic()
virtual std::error_code clang::serialized_diags::SerializedDiagnosticReader::visitEndOfDiagnostic |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ visitFilenameRecord()
virtual std::error_code clang::serialized_diags::SerializedDiagnosticReader::visitFilenameRecord |
( |
unsigned |
ID, |
|
|
unsigned |
Size, |
|
|
unsigned |
Timestamp, |
|
|
StringRef |
Name |
|
) |
| |
|
inlineprotectedvirtual |
◆ visitFixitRecord()
virtual std::error_code clang::serialized_diags::SerializedDiagnosticReader::visitFixitRecord |
( |
const Location & |
Start, |
|
|
const Location & |
End, |
|
|
StringRef |
Text |
|
) |
| |
|
inlineprotectedvirtual |
◆ visitSourceRangeRecord()
virtual std::error_code clang::serialized_diags::SerializedDiagnosticReader::visitSourceRangeRecord |
( |
const Location & |
Start, |
|
|
const Location & |
End |
|
) |
| |
|
inlineprotectedvirtual |
◆ visitStartOfDiagnostic()
virtual std::error_code clang::serialized_diags::SerializedDiagnosticReader::visitStartOfDiagnostic |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ visitVersionRecord()
virtual std::error_code clang::serialized_diags::SerializedDiagnosticReader::visitVersionRecord |
( |
unsigned |
Version | ) |
|
|
inlineprotectedvirtual |
The documentation for this class was generated from the following file: