public interface IASTDeclSpecifier extends IASTNode
IASTNode.CopyStyle
Modifier and Type | Field and Description |
---|---|
static ASTNodeProperty |
ALIGNMENT_SPECIFIER
Deprecated.
Not used.
|
static int |
sc_auto |
static int |
sc_extern |
static int |
sc_mutable |
static int |
sc_register |
static int |
sc_static |
static int |
sc_typedef |
static int |
sc_unspecified
No storage class specified.
|
EMPTY_NODE_ARRAY
Modifier and Type | Method and Description |
---|---|
IASTDeclSpecifier |
copy()
Returns a mutable copy of the tree rooted at this node.
|
IASTDeclSpecifier |
copy(IASTNode.CopyStyle style)
Returns a mutable copy of the tree rooted at this node.
|
IASTAlignmentSpecifier[] |
getAlignmentSpecifiers()
Deprecated.
Use ICASTDeclSpecifier.getAlignmentSpecifiers() for C code.
In C++ code, alignment specifiers are now stored in the attribute specifier sequence.
|
int |
getStorageClass()
Returns the storage class, which is one of the constants sc_...
|
boolean |
isConst() |
boolean |
isInline() |
boolean |
isRestrict() |
boolean |
isVolatile() |
void |
setAlignmentSpecifiers(IASTAlignmentSpecifier[] alignmentSpecifiers)
Deprecated.
Use ICASTDeclSpecifier.setAlignmentSpecifiers() for C code.
In C++ code, alignment specifiers are now stored in the attribute specifier sequence.
|
void |
setConst(boolean value)
Not allowed on frozen ast.
|
void |
setInline(boolean value)
Not allowed on frozen ast.
|
void |
setRestrict(boolean value)
Not allowed on frozen ast.
|
void |
setStorageClass(int storageClass)
Not allowed on frozen ast.
|
void |
setVolatile(boolean value)
Not allowed on frozen ast.
|
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent
static final int sc_unspecified
static final int sc_typedef
static final int sc_extern
static final int sc_static
static final int sc_auto
static final int sc_register
static final int sc_mutable
@Deprecated static final ASTNodeProperty ALIGNMENT_SPECIFIER
int getStorageClass()
boolean isConst()
boolean isVolatile()
boolean isRestrict()
boolean isInline()
@Deprecated IASTAlignmentSpecifier[] getAlignmentSpecifiers()
IASTDeclSpecifier copy()
IASTNode
copy.getParent() == null copy.getPropertyInParent() == null copy.isFrozen() == falsePreprocessor nodes do not currently support being copied. Implicit name nodes are not copied, instead they can be regenerated if required.
Calling this method is equivalent to copy(CopyStyle.withoutLocations)
.
IASTDeclSpecifier copy(IASTNode.CopyStyle style)
IASTNode
copy.getParent() == null copy.getPropertyInParent() == null copy.isFrozen() == falsePreprocessor nodes do not currently support being copied. Implicit name nodes are not copied, instead they can be regenerated if required.
copy
in interface IASTNode
style
- IASTNode.CopyStyle
create a copy with or without locations. Please see
IASTNode.CopyStyle
for restrictions on copies with Locations.void setStorageClass(int storageClass)
void setConst(boolean value)
void setVolatile(boolean value)
void setRestrict(boolean value)
void setInline(boolean value)
@Deprecated void setAlignmentSpecifiers(IASTAlignmentSpecifier[] alignmentSpecifiers)