clang API Documentation

Public Member Functions | Friends
clang::Sema::SemaDiagnosticBuilder Class Reference

Helper class that creates diagnostics with optional template instantiation stacks. More...

#include <Sema.h>

Inheritance diagram for clang::Sema::SemaDiagnosticBuilder:
Inheritance graph
[legend]
Collaboration diagram for clang::Sema::SemaDiagnosticBuilder:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SemaDiagnosticBuilder (DiagnosticBuilder &DB, Sema &SemaRef, unsigned DiagID)
 ~SemaDiagnosticBuilder ()

Friends

template<typename T >
const SemaDiagnosticBuilderoperator<< (const SemaDiagnosticBuilder &Diag, const T &Value)
 Teach operator<< to produce an object of the correct type.

Detailed Description

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.

Definition at line 994 of file Sema.h.


Constructor & Destructor Documentation

Definition at line 999 of file Sema.h.


Friends And Related Function Documentation

template<typename T >
const SemaDiagnosticBuilder& operator<< ( const SemaDiagnosticBuilder Diag,
const T &  Value 
) [friend]

Teach operator<< to produce an object of the correct type.

Definition at line 1024 of file Sema.h.


The documentation for this class was generated from the following file: