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 11108 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 11111 of file Sema.h.

◆ RequiredTemplateKind() [2/2]

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

Template name is unconditionally required.

Definition at line 11114 of file Sema.h.

Member Function Documentation

◆ getTemplateKeywordLoc()

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

Definition at line 11116 of file Sema.h.

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

◆ hasTemplateKeyword()

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

Definition at line 11119 of file Sema.h.

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

◆ isRequired()

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

Definition at line 11122 of file Sema.h.

◆ operator bool()

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

Definition at line 11123 of file Sema.h.


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