|
clang
5.0.0
|
Helper class that creates diagnostics with optional template instantiation stacks. More...
#include "clang/Sema/Sema.h"
Public Member Functions | |
| SemaDiagnosticBuilder (DiagnosticBuilder &DB, Sema &SemaRef, unsigned DiagID) | |
| SemaDiagnosticBuilder (const SemaDiagnosticBuilder &)=default | |
| ~SemaDiagnosticBuilder () | |
Public Member Functions inherited from clang::DiagnosticBuilder | |
| DiagnosticBuilder (const DiagnosticBuilder &D) | |
| Copy constructor. More... | |
| DiagnosticBuilder & | operator= (const DiagnosticBuilder &)=delete |
| ~DiagnosticBuilder () | |
| Emits the diagnostic. More... | |
| const DiagnosticBuilder & | setForceEmit () const |
| Forces the diagnostic to be emitted. More... | |
| operator bool () const | |
Conversion of DiagnosticBuilder to bool always returns true. More... | |
| void | AddString (StringRef S) const |
| void | AddTaggedVal (intptr_t V, DiagnosticsEngine::ArgumentKind Kind) const |
| void | AddSourceRange (const CharSourceRange &R) const |
| void | AddFixItHint (const FixItHint &Hint) const |
| void | addFlagValue (StringRef V) const |
Friends | |
| template<typename T > | |
| const SemaDiagnosticBuilder & | operator<< (const SemaDiagnosticBuilder &Diag, const T &Value) |
| Teach operator<< to produce an object of the correct type. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from clang::DiagnosticBuilder | |
| static DiagnosticBuilder | getEmpty () |
| Retrieve an empty diagnostic builder. More... | |
Protected Member Functions inherited from clang::DiagnosticBuilder | |
| void | FlushCounts () |
| void | Clear () const |
| Clear out the current diagnostic. More... | |
| bool | isActive () const |
| Determine whether this diagnostic is still active. More... | |
| bool | Emit () |
| Force the diagnostic builder to emit the diagnostic now. More... | |
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.
|
inline |
|
default |
|
inline |
Definition at line 1212 of file Sema.h.
References clang::DiagnosticBuilder::Clear(), clang::Sema::EmitCurrentDiagnostic(), clang::DiagnosticBuilder::FlushCounts(), and clang::DiagnosticBuilder::isActive().
|
friend |
1.8.6