clang 20.0.0git
Public Member Functions | List of all members
clang::Sema::RequiredTemplateKind Class Reference

Whether and why a template name is required in this lookup. More...

#include "clang/Sema/Sema.h"

Public Member Functions

 RequiredTemplateKind (SourceLocation TemplateKWLoc=SourceLocation())
 Template name is required if TemplateKWLoc is valid.
 
 RequiredTemplateKind (TemplateNameIsRequiredTag)
 Template name is unconditionally required.
 
SourceLocation getTemplateKeywordLoc () const
 
bool hasTemplateKeyword () const
 
bool isRequired () const
 
 operator bool () const
 

Detailed Description

Whether and why a template name is required in this lookup.

Definition at line 11083 of file Sema.h.

Constructor & Destructor Documentation

◆ RequiredTemplateKind() [1/2]

clang::Sema::RequiredTemplateKind::RequiredTemplateKind ( SourceLocation  TemplateKWLoc = SourceLocation())
inline

Template name is required if TemplateKWLoc is valid.

Definition at line 11086 of file Sema.h.

◆ RequiredTemplateKind() [2/2]

clang::Sema::RequiredTemplateKind::RequiredTemplateKind ( TemplateNameIsRequiredTag  )
inline

Template name is unconditionally required.

Definition at line 11089 of file Sema.h.

Member Function Documentation

◆ getTemplateKeywordLoc()

SourceLocation clang::Sema::RequiredTemplateKind::getTemplateKeywordLoc ( ) const
inline

Definition at line 11091 of file Sema.h.

Referenced by clang::Sema::LookupTemplateName().

◆ hasTemplateKeyword()

bool clang::Sema::RequiredTemplateKind::hasTemplateKeyword ( ) const
inline

Definition at line 11094 of file Sema.h.

Referenced by clang::Sema::LookupTemplateName().

◆ isRequired()

bool clang::Sema::RequiredTemplateKind::isRequired ( ) const
inline

Definition at line 11097 of file Sema.h.

◆ operator bool()

clang::Sema::RequiredTemplateKind::operator bool ( ) const
inlineexplicit

Definition at line 11098 of file Sema.h.


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