clang 23.0.0git
RotateIntegerConverter Class Reference
Inheritance diagram for RotateIntegerConverter:
[legend]

Public Member Functions

 RotateIntegerConverter (unsigned ArgIndex, bool OnlyUnsigned)
bool match (QualType T) override
 Determine whether the specified type is a valid destination type for this conversion.
Sema::SemaDiagnosticBuilder diagnoseNoMatch (Sema &S, SourceLocation Loc, QualType T) override
 Emits a diagnostic complaining that the expression does not have integral or enumeration type.
Sema::SemaDiagnosticBuilder diagnoseIncomplete (Sema &S, SourceLocation Loc, QualType T) override
 Emits a diagnostic when the expression has incomplete class type.
Sema::SemaDiagnosticBuilder diagnoseExplicitConv (Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) override
 Emits a diagnostic when the only matching conversion function is explicit.
Sema::SemaDiagnosticBuilder noteExplicitConv (Sema &S, CXXConversionDecl *Conv, QualType ConvTy) override
 Emits a note for the explicit conversion function.
Sema::SemaDiagnosticBuilder diagnoseAmbiguous (Sema &S, SourceLocation Loc, QualType T) override
 Emits a diagnostic when there are multiple possible conversion functions.
Sema::SemaDiagnosticBuilder noteAmbiguous (Sema &S, CXXConversionDecl *Conv, QualType ConvTy) override
 Emits a note for one of the candidate conversions.
Sema::SemaDiagnosticBuilder diagnoseConversion (Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) override
 Emits a diagnostic when we picked a conversion function (for cases when we are not allowed to pick a conversion function).
Public Member Functions inherited from clang::Sema::ContextualImplicitConverter
 ContextualImplicitConverter (bool Suppress=false, bool SuppressConversion=false)
virtual ~ContextualImplicitConverter ()

Additional Inherited Members

Public Attributes inherited from clang::Sema::ContextualImplicitConverter
bool Suppress
bool SuppressConversion

Detailed Description

Definition at line 2329 of file SemaChecking.cpp.

Constructor & Destructor Documentation

◆ RotateIntegerConverter()

RotateIntegerConverter::RotateIntegerConverter ( unsigned ArgIndex,
bool OnlyUnsigned )
inline

Member Function Documentation

◆ diagnoseAmbiguous()

Sema::SemaDiagnosticBuilder RotateIntegerConverter::diagnoseAmbiguous ( Sema & S,
SourceLocation Loc,
QualType T )
inlineoverridevirtual

Emits a diagnostic when there are multiple possible conversion functions.

Implements clang::Sema::ContextualImplicitConverter.

Definition at line 2372 of file SemaChecking.cpp.

References clang::T.

◆ diagnoseConversion()

Sema::SemaDiagnosticBuilder RotateIntegerConverter::diagnoseConversion ( Sema & S,
SourceLocation Loc,
QualType T,
QualType ConvTy )
inlineoverridevirtual

Emits a diagnostic when we picked a conversion function (for cases when we are not allowed to pick a conversion function).

Implements clang::Sema::ContextualImplicitConverter.

Definition at line 2382 of file SemaChecking.cpp.

References clang::T.

◆ diagnoseExplicitConv()

Sema::SemaDiagnosticBuilder RotateIntegerConverter::diagnoseExplicitConv ( Sema & S,
SourceLocation Loc,
QualType T,
QualType ConvTy )
inlineoverridevirtual

Emits a diagnostic when the only matching conversion function is explicit.

Implements clang::Sema::ContextualImplicitConverter.

Definition at line 2361 of file SemaChecking.cpp.

References clang::T.

◆ diagnoseIncomplete()

Sema::SemaDiagnosticBuilder RotateIntegerConverter::diagnoseIncomplete ( Sema & S,
SourceLocation Loc,
QualType T )
inlineoverridevirtual

Emits a diagnostic when the expression has incomplete class type.

Implements clang::Sema::ContextualImplicitConverter.

Definition at line 2356 of file SemaChecking.cpp.

References clang::T.

◆ diagnoseNoMatch()

Sema::SemaDiagnosticBuilder RotateIntegerConverter::diagnoseNoMatch ( Sema & S,
SourceLocation Loc,
QualType T )
inlineoverridevirtual

Emits a diagnostic complaining that the expression does not have integral or enumeration type.

Implements clang::Sema::ContextualImplicitConverter.

Definition at line 2351 of file SemaChecking.cpp.

References clang::T.

◆ match()

bool RotateIntegerConverter::match ( QualType T)
inlineoverridevirtual

Determine whether the specified type is a valid destination type for this conversion.

Implements clang::Sema::ContextualImplicitConverter.

Definition at line 2347 of file SemaChecking.cpp.

References clang::T.

◆ noteAmbiguous()

Sema::SemaDiagnosticBuilder RotateIntegerConverter::noteAmbiguous ( Sema & S,
CXXConversionDecl * Conv,
QualType ConvTy )
inlineoverridevirtual

Emits a note for one of the candidate conversions.

Implements clang::Sema::ContextualImplicitConverter.

Definition at line 2377 of file SemaChecking.cpp.

References clang::SemaBase::Diag(), and clang::Decl::getLocation().

◆ noteExplicitConv()

Sema::SemaDiagnosticBuilder RotateIntegerConverter::noteExplicitConv ( Sema & S,
CXXConversionDecl * Conv,
QualType ConvTy )
inlineoverridevirtual

Emits a note for the explicit conversion function.

Implements clang::Sema::ContextualImplicitConverter.

Definition at line 2367 of file SemaChecking.cpp.

References clang::SemaBase::Diag(), and clang::Decl::getLocation().


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