clang 17.0.0git
Public Attributes | List of all members
clang::DesignatedInitExpr::FieldDesignator Struct Reference

A field designator, e.g., ".x". More...

#include "clang/AST/Expr.h"

Collaboration diagram for clang::DesignatedInitExpr::FieldDesignator:
Collaboration graph
[legend]

Public Attributes

uintptr_t NameOrField
 Refers to the field that is being initialized.
 
SourceLocation DotLoc
 The location of the '.' in the designated initializer.
 
SourceLocation FieldLoc
 The location of the field name in the designated initializer.
 

Detailed Description

A field designator, e.g., ".x".

Definition at line 5075 of file Expr.h.

Member Data Documentation

◆ DotLoc

SourceLocation clang::DesignatedInitExpr::FieldDesignator::DotLoc

The location of the '.' in the designated initializer.

Definition at line 5085 of file Expr.h.

Referenced by clang::DesignatedInitExpr::Designator::Designator(), and clang::DesignatedInitExpr::Designator::getDotLoc().

◆ FieldLoc

SourceLocation clang::DesignatedInitExpr::FieldDesignator::FieldLoc

The location of the field name in the designated initializer.

Definition at line 5088 of file Expr.h.

Referenced by clang::DesignatedInitExpr::Designator::Designator(), and clang::DesignatedInitExpr::Designator::getFieldLoc().

◆ NameOrField

uintptr_t clang::DesignatedInitExpr::FieldDesignator::NameOrField

Refers to the field that is being initialized.

The low bit of this field determines whether this is actually a pointer to an IdentifierInfo (if 1) or a FieldDecl (if 0). When initially constructed, a field designator will store an IdentifierInfo*. After semantic analysis has resolved that name, the field designator will instead store a FieldDecl*.

Definition at line 5082 of file Expr.h.

Referenced by clang::DesignatedInitExpr::Designator::Designator(), clang::DesignatedInitExpr::Designator::getField(), clang::DesignatedInitExpr::Designator::getFieldName(), and clang::DesignatedInitExpr::Designator::setField().


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