clang 19.0.0git
Public Member Functions | Static Public Member Functions | List of all members
clang::Sema::NameClassification Class Reference

#include "clang/Sema/Sema.h"

Public Member Functions

 NameClassification (ParsedType Type)
 
 NameClassification (const IdentifierInfo *Keyword)
 
NameClassificationKind getKind () const
 
ExprResult getExpression () const
 
ParsedType getType () const
 
NamedDeclgetNonTypeDecl () const
 
TemplateName getTemplateName () const
 
TemplateNameKind getTemplateNameKind () const
 

Static Public Member Functions

static NameClassification Error ()
 
static NameClassification Unknown ()
 
static NameClassification OverloadSet (ExprResult E)
 
static NameClassification NonType (NamedDecl *D)
 
static NameClassification UndeclaredNonType ()
 
static NameClassification DependentNonType ()
 
static NameClassification TypeTemplate (TemplateName Name)
 
static NameClassification VarTemplate (TemplateName Name)
 
static NameClassification FunctionTemplate (TemplateName Name)
 
static NameClassification Concept (TemplateName Name)
 
static NameClassification UndeclaredTemplate (TemplateName Name)
 

Detailed Description

Definition at line 2824 of file Sema.h.

Constructor & Destructor Documentation

◆ NameClassification() [1/2]

clang::Sema::NameClassification::NameClassification ( ParsedType  Type)
inline

Definition at line 2836 of file Sema.h.

◆ NameClassification() [2/2]

clang::Sema::NameClassification::NameClassification ( const IdentifierInfo Keyword)
inline

Definition at line 2838 of file Sema.h.

Member Function Documentation

◆ Concept()

static NameClassification clang::Sema::NameClassification::Concept ( TemplateName  Name)
inlinestatic

Definition at line 2886 of file Sema.h.

References clang::Sema::NC_Concept, and clang::Result.

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

◆ DependentNonType()

static NameClassification clang::Sema::NameClassification::DependentNonType ( )
inlinestatic

Definition at line 2864 of file Sema.h.

References clang::Sema::NC_DependentNonType.

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

◆ Error()

static NameClassification clang::Sema::NameClassification::Error ( )
inlinestatic

Definition at line 2840 of file Sema.h.

References clang::Sema::NC_Error.

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

◆ FunctionTemplate()

static NameClassification clang::Sema::NameClassification::FunctionTemplate ( TemplateName  Name)
inlinestatic

Definition at line 2880 of file Sema.h.

References clang::Sema::NC_FunctionTemplate, and clang::Result.

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

◆ getExpression()

ExprResult clang::Sema::NameClassification::getExpression ( ) const
inline

Definition at line 2900 of file Sema.h.

References Expr, and clang::Sema::NC_OverloadSet.

◆ getKind()

NameClassificationKind clang::Sema::NameClassification::getKind ( ) const
inline

Definition at line 2898 of file Sema.h.

◆ getNonTypeDecl()

NamedDecl * clang::Sema::NameClassification::getNonTypeDecl ( ) const
inline

Definition at line 2910 of file Sema.h.

References clang::Sema::NC_NonType, and NonTypeDecl.

◆ getTemplateName()

TemplateName clang::Sema::NameClassification::getTemplateName ( ) const
inline

◆ getTemplateNameKind()

TemplateNameKind clang::Sema::NameClassification::getTemplateNameKind ( ) const
inline

◆ getType()

ParsedType clang::Sema::NameClassification::getType ( ) const
inline

Definition at line 2905 of file Sema.h.

References clang::Sema::NC_Type, and Type.

◆ NonType()

static NameClassification clang::Sema::NameClassification::NonType ( NamedDecl D)
inlinestatic

Definition at line 2854 of file Sema.h.

References clang::Sema::NC_NonType, and clang::Result.

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

◆ OverloadSet()

static NameClassification clang::Sema::NameClassification::OverloadSet ( ExprResult  E)
inlinestatic

Definition at line 2848 of file Sema.h.

References clang::Sema::NC_OverloadSet, and clang::Result.

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

◆ TypeTemplate()

static NameClassification clang::Sema::NameClassification::TypeTemplate ( TemplateName  Name)
inlinestatic

Definition at line 2868 of file Sema.h.

References clang::Sema::NC_TypeTemplate, and clang::Result.

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

◆ UndeclaredNonType()

static NameClassification clang::Sema::NameClassification::UndeclaredNonType ( )
inlinestatic

Definition at line 2860 of file Sema.h.

References clang::Sema::NC_UndeclaredNonType.

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

◆ UndeclaredTemplate()

static NameClassification clang::Sema::NameClassification::UndeclaredTemplate ( TemplateName  Name)
inlinestatic

Definition at line 2892 of file Sema.h.

References clang::Sema::NC_UndeclaredTemplate, and clang::Result.

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

◆ Unknown()

static NameClassification clang::Sema::NameClassification::Unknown ( )
inlinestatic

Definition at line 2844 of file Sema.h.

References clang::Sema::NC_Unknown.

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

◆ VarTemplate()

static NameClassification clang::Sema::NameClassification::VarTemplate ( TemplateName  Name)
inlinestatic

Definition at line 2874 of file Sema.h.

References clang::Sema::NC_VarTemplate, and clang::Result.

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

Member Data Documentation

◆ Expr

ExprResult clang::Sema::NameClassification::Expr

Definition at line 2827 of file Sema.h.

Referenced by getExpression().

◆ NonTypeDecl

NamedDecl* clang::Sema::NameClassification::NonTypeDecl

Definition at line 2828 of file Sema.h.

Referenced by getNonTypeDecl().

◆ Template

TemplateName clang::Sema::NameClassification::Template

Definition at line 2829 of file Sema.h.

Referenced by getTemplateName().

◆ Type

ParsedType clang::Sema::NameClassification::Type

Definition at line 2830 of file Sema.h.

Referenced by getType().


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