clang API Documentation

Public Member Functions
clang::Sema::ICEConvertDiagnoser Class Reference

#include <Sema.h>

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

List of all members.

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.

Detailed Description

Definition at line 2203 of file Sema.h.


Constructor & Destructor Documentation

clang::Sema::ICEConvertDiagnoser::ICEConvertDiagnoser ( bool  AllowScopedEnumerations,
bool  Suppress,
bool  SuppressConversion 
) [inline]

Definition at line 2207 of file Sema.h.


Member Function Documentation

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().

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().


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