The DiagConsumer class allows turning most errors into warnings.
More...
#include <consumer.h>
|
| | DiagConsumer (std::unique_ptr< DiagnosticConsumer > previous, bool errorResilient) |
| unsigned int | realErrorCount () const |
| | Returns the number of errors which actually would have been occurred if we would not turn most errors into warnings.
|
| void | BeginSourceFile (const clang::LangOptions &langOpts, const clang::Preprocessor *pp=nullptr) override |
| void | clear () override |
| void | EndSourceFile () override |
| void | finish () override |
| void | HandleDiagnostic (clang::DiagnosticsEngine::Level diagLevel, const clang::Diagnostic &info) override |
| | Turns most errors into warnings so the code generator can even work when parsing incomplete headers.
|
The DiagConsumer class allows turning most errors into warnings.
Definition at line 52 of file consumer.h.
◆ DiagConsumer()
| ReflectiveRapidJSON::DiagConsumer::DiagConsumer |
( |
std::unique_ptr< DiagnosticConsumer > | previous, |
|
|
bool | errorResilient ) |
|
inline |
◆ BeginSourceFile()
| void ReflectiveRapidJSON::DiagConsumer::BeginSourceFile |
( |
const clang::LangOptions & | langOpts, |
|
|
const clang::Preprocessor * | pp = nullptr ) |
|
override |
◆ clear()
| void ReflectiveRapidJSON::DiagConsumer::clear |
( |
| ) |
|
|
override |
◆ EndSourceFile()
| void ReflectiveRapidJSON::DiagConsumer::EndSourceFile |
( |
| ) |
|
|
override |
◆ finish()
| void ReflectiveRapidJSON::DiagConsumer::finish |
( |
| ) |
|
|
override |
◆ HandleDiagnostic()
| void ReflectiveRapidJSON::DiagConsumer::HandleDiagnostic |
( |
clang::DiagnosticsEngine::Level | diagLevel, |
|
|
const clang::Diagnostic & | info ) |
|
override |
Turns most errors into warnings so the code generator can even work when parsing incomplete headers.
Definition at line 64 of file consumer.cpp.
◆ realErrorCount()
| unsigned int ReflectiveRapidJSON::DiagConsumer::realErrorCount |
( |
| ) |
const |
|
inline |
Returns the number of errors which actually would have been occurred if we would not turn most errors into warnings.
Definition at line 81 of file consumer.h.
The documentation for this class was generated from the following files: