clang API Documentation
Helper class that creates diagnostics with optional template instantiation stacks. More...
#include <Sema.h>


Public Member Functions | |
| SemaDiagnosticBuilder (DiagnosticBuilder &DB, Sema &SemaRef, unsigned DiagID) | |
| ~SemaDiagnosticBuilder () | |
Friends | |
| template<typename T > | |
| const SemaDiagnosticBuilder & | operator<< (const SemaDiagnosticBuilder &Diag, const T &Value) |
| Teach operator<< to produce an object of the correct type. | |
Helper class that creates diagnostics with optional template instantiation stacks.
This class provides a wrapper around the basic DiagnosticBuilder class that emits diagnostics. SemaDiagnosticBuilder is responsible for emitting the diagnostic (as DiagnosticBuilder does) and, if the diagnostic comes from inside a template instantiation, printing the template instantiation stack as well.
| clang::Sema::SemaDiagnosticBuilder::SemaDiagnosticBuilder | ( | DiagnosticBuilder & | DB, |
| Sema & | SemaRef, | ||
| unsigned | DiagID | ||
| ) | [inline] |
Definition at line 1002 of file Sema.h.
References clang::DiagnosticBuilder::Clear(), clang::Sema::EmitCurrentDiagnostic(), clang::DiagnosticBuilder::FlushCounts(), and clang::DiagnosticBuilder::isActive().
| const SemaDiagnosticBuilder& operator<< | ( | const SemaDiagnosticBuilder & | Diag, |
| const T & | Value | ||
| ) | [friend] |