clang API Documentation
#include <Sema.h>
Public Member Functions | |
ICEConvertDiagnoser (bool AllowScopedEnumerations, bool Suppress, bool SuppressConversion) | |
bool | match (QualType T) override |
Match an integral or (possibly scoped) enumeration type. | |
SemaDiagnosticBuilder | diagnoseNoMatch (Sema &S, SourceLocation Loc, QualType T) override |
Emits a diagnostic complaining that the expression does not have integral or enumeration type. | |
virtual SemaDiagnosticBuilder | diagnoseNotInt (Sema &S, SourceLocation Loc, QualType T)=0 |
Emits a diagnostic complaining that the expression does not have integral or enumeration type. |
clang::Sema::ICEConvertDiagnoser::ICEConvertDiagnoser | ( | bool | AllowScopedEnumerations, |
bool | Suppress, | ||
bool | SuppressConversion | ||
) | [inline] |
SemaDiagnosticBuilder clang::Sema::ICEConvertDiagnoser::diagnoseNoMatch | ( | Sema & | S, |
SourceLocation | Loc, | ||
QualType | T | ||
) | [inline, override, virtual] |
Emits a diagnostic complaining that the expression does not have integral or enumeration type.
Implements clang::Sema::ContextualImplicitConverter.
Definition at line 2216 of file Sema.h.
References diagnoseNotInt().
virtual SemaDiagnosticBuilder clang::Sema::ICEConvertDiagnoser::diagnoseNotInt | ( | Sema & | S, |
SourceLocation | Loc, | ||
QualType | T | ||
) | [pure virtual] |
Emits a diagnostic complaining that the expression does not have integral or enumeration type.
Referenced by diagnoseNoMatch().
bool Sema::ICEConvertDiagnoser::match | ( | QualType | T | ) | [override, virtual] |
Match an integral or (possibly scoped) enumeration type.
Determine whether the provided type is an integral type, or an enumeration type of a permitted flavor.
Implements clang::Sema::ContextualImplicitConverter.
Definition at line 5117 of file SemaOverload.cpp.
References clang::Type::isIntegralOrEnumerationType(), and clang::Type::isIntegralOrUnscopedEnumerationType().