struct DesignatedInitExpr::FieldDesignator
Declaration
struct DesignatedInitExpr::FieldDesignator { /* full declaration omitted */ };
Description
A field designator, e.g., ".x".
Declared at: clang/include/clang/AST/Expr.h:5068
Member Variables
- public uintptr_t 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*.
- public clang::SourceLocation DotLoc
- The location of the '.' in the designated initializer.
- public clang::SourceLocation FieldLoc
- The location of the field name in the designated initializer.