public class AttributeUtil extends Object
IASTAttribute
,
IASTAttributeOwner
Modifier and Type | Method and Description |
---|---|
static char[] |
getSimpleArgument(IASTAttribute attribute)
Returns character representation of the attribute argument, or
null if the attribute
has zero or more than one argument. |
static boolean |
hasAttribute(IASTAttributeOwner node,
String[] names)
Returns
true if a declarator has an attribute with one of the given names. |
static boolean |
hasNoreturnAttribute(IASTAttributeOwner node)
Returns
true if the node has a "noreturn" or "__noreturn__" attribute. |
public static boolean hasAttribute(IASTAttributeOwner node, String[] names)
true
if a declarator has an attribute with one of the given names.
The names
array is assumed to be small.public static boolean hasNoreturnAttribute(IASTAttributeOwner node)
true
if the node has a "noreturn" or "__noreturn__" attribute.public static char[] getSimpleArgument(IASTAttribute attribute)
null
if the attribute
has zero or more than one argument.Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.