clang  14.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]
Collaboration diagram for clang::Sema::SizelessTypeDiagnoser< Ts >:
Collaboration 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 ~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 2148 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 2150 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 2153 of file Sema.h.


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