clang 23.0.0git
clang::LateParsedAttribute Struct Reference

Contains the lexed tokens of an attribute with arguments that may reference member variables and so need to be parsed at the end of the class declaration after parsing all other member member declarations. More...

#include "clang/Parse/Parser.h"

Inheritance diagram for clang::LateParsedAttribute:
[legend]

Public Member Functions

 LateParsedAttribute (Parser *P, IdentifierInfo &Name, SourceLocation Loc)
void ParseLexedAttributes () override
void addDecl (Decl *D)
Public Member Functions inherited from clang::LateParsedDeclaration
virtual ~LateParsedDeclaration ()
virtual void ParseLexedMethodDeclarations ()
virtual void ParseLexedMemberInitializers ()
virtual void ParseLexedMethodDefs ()
virtual void ParseLexedPragmas ()

Public Attributes

ParserSelf
CachedTokens Toks
IdentifierInfoAttrName
IdentifierInfoMacroII = nullptr
SourceLocation AttrNameLoc
SmallVector< Decl *, 2 > Decls

Detailed Description

Contains the lexed tokens of an attribute with arguments that may reference member variables and so need to be parsed at the end of the class declaration after parsing all other member member declarations.

FIXME: Perhaps we should change the name of LateParsedDeclaration to LateParsedTokens.

Definition at line 192 of file Parser.h.

Constructor & Destructor Documentation

◆ LateParsedAttribute()

clang::LateParsedAttribute::LateParsedAttribute ( Parser * P,
IdentifierInfo & Name,
SourceLocation Loc )
inlineexplicit

Definition at line 200 of file Parser.h.

References AttrName, AttrNameLoc, and Self.

Member Function Documentation

◆ addDecl()

void clang::LateParsedAttribute::addDecl ( Decl * D)
inline

Definition at line 206 of file Parser.h.

References Decls.

◆ ParseLexedAttributes()

void LateParsedAttribute::ParseLexedAttributes ( )
overridevirtual

Reimplemented from clang::LateParsedDeclaration.

Definition at line 318 of file ParseCXXInlineMethods.cpp.

References Self.

Member Data Documentation

◆ AttrName

IdentifierInfo& clang::LateParsedAttribute::AttrName

Definition at line 195 of file Parser.h.

Referenced by LateParsedAttribute().

◆ AttrNameLoc

SourceLocation clang::LateParsedAttribute::AttrNameLoc

Definition at line 197 of file Parser.h.

Referenced by LateParsedAttribute().

◆ Decls

SmallVector<Decl *, 2> clang::LateParsedAttribute::Decls

Definition at line 198 of file Parser.h.

Referenced by addDecl().

◆ MacroII

IdentifierInfo* clang::LateParsedAttribute::MacroII = nullptr

Definition at line 196 of file Parser.h.

◆ Self

Parser* clang::LateParsedAttribute::Self

Definition at line 193 of file Parser.h.

Referenced by LateParsedAttribute(), and ParseLexedAttributes().

◆ Toks

CachedTokens clang::LateParsedAttribute::Toks

Definition at line 194 of file Parser.h.


The documentation for this struct was generated from the following files: