Package org.eclipse.cdt.core.parser.util
Class AttributeUtil
java.lang.Object
org.eclipse.cdt.core.parser.util.AttributeUtil
Collection of static methods for dealing with attributes.
- Since:
- 5.4
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic char[]getSimpleArgument(IASTAttribute attribute) Returns character representation of the attribute argument, ornullif the attribute has zero or more than one argument.static booleanhasAttribute(IASTAttributeOwner node, String[] names) Returnstrueif a declarator has an attribute with one of the given names.static booleanReturnstrueif the node has a "nodiscard" attribute.static booleanReturnstrueif the node has a "noreturn" or "__noreturn__" attribute.
-
Method Details
-
hasAttribute
Returnstrueif a declarator has an attribute with one of the given names. Thenamesarray is assumed to be small. -
hasNoreturnAttribute
Returnstrueif the node has a "noreturn" or "__noreturn__" attribute. -
hasNodiscardAttribute
Returnstrueif the node has a "nodiscard" attribute.- Since:
- 7.0
-
getSimpleArgument
Returns character representation of the attribute argument, ornullif the attribute has zero or more than one argument.
-