clang 19.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 8736 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 8739 of file Sema.h.

◆ RequiredTemplateKind() [2/2]

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

Template name is unconditionally required.

Definition at line 8742 of file Sema.h.

Member Function Documentation

◆ getTemplateKeywordLoc()

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

Definition at line 8744 of file Sema.h.

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

◆ hasTemplateKeyword()

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

Definition at line 8747 of file Sema.h.

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

◆ isRequired()

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

Definition at line 8750 of file Sema.h.

◆ operator bool()

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

Definition at line 8751 of file Sema.h.


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