clang 20.0.0git
Public Member Functions | List of all members
clang::Sema::SizelessTypeDiagnoser< Ts > Class Template Reference

A derivative of BoundTypeDiagnoser for which the diagnostic's type parameter is preceded by a 0/1 enum that is 1 if the type is sizeless. More...

#include "clang/Sema/Sema.h"

Inheritance diagram for clang::Sema::SizelessTypeDiagnoser< Ts >:
Inheritance graph
[legend]

Public Member Functions

 SizelessTypeDiagnoser (unsigned DiagID, const Ts &...Args)
 
void diagnose (Sema &S, SourceLocation Loc, QualType T) override
 
- Public Member Functions inherited from clang::Sema::BoundTypeDiagnoser< Ts... >
 BoundTypeDiagnoser (unsigned DiagID, const Ts &...Args)
 
void diagnose (Sema &S, SourceLocation Loc, QualType T) override
 
- Public Member Functions inherited from clang::Sema::TypeDiagnoser
 TypeDiagnoser ()
 
virtual void diagnose (Sema &S, SourceLocation Loc, QualType T)=0
 
virtual ~TypeDiagnoser ()
 

Additional Inherited Members

- Protected Member Functions inherited from clang::Sema::BoundTypeDiagnoser< Ts... >
void emit (const SemaDiagnosticBuilder &DB, std::index_sequence< Is... >) const
 
- Protected Attributes inherited from clang::Sema::BoundTypeDiagnoser< Ts... >
unsigned DiagID
 
std::tuple< const Ts &... > Args
 

Detailed Description

template<typename... Ts>
class clang::Sema::SizelessTypeDiagnoser< Ts >

A derivative of BoundTypeDiagnoser for which the diagnostic's type parameter is preceded by a 0/1 enum that is 1 if the type is sizeless.

For example, a diagnostic with no other parameters would generally have the form "...%select{incomplete|sizeless}0 type %1...".

Definition at line 7889 of file Sema.h.

Constructor & Destructor Documentation

◆ SizelessTypeDiagnoser()

template<typename... Ts>
clang::Sema::SizelessTypeDiagnoser< Ts >::SizelessTypeDiagnoser ( unsigned  DiagID,
const Ts &...  Args 
)
inline

Definition at line 7891 of file Sema.h.

Member Function Documentation

◆ diagnose()

template<typename... Ts>
void clang::Sema::SizelessTypeDiagnoser< Ts >::diagnose ( Sema S,
SourceLocation  Loc,
QualType  T 
)
inlineoverridevirtual

Implements clang::Sema::TypeDiagnoser.

Definition at line 7894 of file Sema.h.

References emit(), clang::Type::isSizelessType(), Loc, and clang::T.


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