clang  14.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. More...
 
 RequiredTemplateKind (TemplateNameIsRequiredTag)
 Template name is unconditionally required. More...
 
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 7480 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 7483 of file Sema.h.

◆ RequiredTemplateKind() [2/2]

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

Template name is unconditionally required.

Definition at line 7486 of file Sema.h.

Member Function Documentation

◆ getTemplateKeywordLoc()

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

Definition at line 7488 of file Sema.h.

Referenced by hasTemplateKeyword().

◆ hasTemplateKeyword()

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

Definition at line 7491 of file Sema.h.

References getTemplateKeywordLoc(), and clang::SourceLocation::isValid().

◆ isRequired()

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

Definition at line 7492 of file Sema.h.

Referenced by operator bool().

◆ operator bool()

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

Definition at line 7493 of file Sema.h.

References isRequired().


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