clang 24.0.0git
clang::LateParsedTypeAttrInfo Struct Reference

The part of a late-parsed type attribute that Sema reads and fills in during type construction. More...

#include "clang/Sema/DeclSpec.h"

Public Member Functions

 LateParsedTypeAttrInfo (ParsedAttr::Kind Kind, SourceLocation NameLoc)

Public Attributes

ParsedAttr::Kind Kind
SourceLocation NameLoc
BoundsAttributedType * TypeToComplete = nullptr
 The type built for this attribute during type construction, still missing the argument that hasn't been parsed yet.

Detailed Description

The part of a late-parsed type attribute that Sema reads and fills in during type construction.

The parser owns the attribute and its cached tokens and embeds this, so Sema never needs to see the parser's type.

Definition at line 1290 of file DeclSpec.h.

Constructor & Destructor Documentation

◆ LateParsedTypeAttrInfo()

clang::LateParsedTypeAttrInfo::LateParsedTypeAttrInfo ( ParsedAttr::Kind Kind,
SourceLocation NameLoc )
inline

Definition at line 1304 of file DeclSpec.h.

References Kind, and NameLoc.

Member Data Documentation

◆ Kind

ParsedAttr::Kind clang::LateParsedTypeAttrInfo::Kind

Definition at line 1291 of file DeclSpec.h.

Referenced by LateParsedTypeAttrInfo(), and clang::Sema::ProcessLateParsedTypeAttr().

◆ NameLoc

SourceLocation clang::LateParsedTypeAttrInfo::NameLoc

Definition at line 1292 of file DeclSpec.h.

Referenced by LateParsedTypeAttrInfo(), and clang::Sema::ProcessLateParsedTypeAttr().

◆ TypeToComplete

BoundsAttributedType* clang::LateParsedTypeAttrInfo::TypeToComplete = nullptr

The type built for this attribute during type construction, still missing the argument that hasn't been parsed yet.

Filled in by Sema::ProcessLateParsedTypeAttr and completed once the enclosing scope makes the argument parseable. Null if type construction rejected the attribute.

Held as the base class so the parser stays agnostic about which bounds attribute this is; Sema dispatches on the concrete kind when completing.

Definition at line 1302 of file DeclSpec.h.

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


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