comma::attrib Namespace Reference

Enumerations

enum  AttributeID {
  UNKNOWN_ATTRIBUTE, First, Pos, Val,
  Last, Range, FIRST_ATTRIB = First, LAST_ATTRIB = Range,
  FIRST_EXPR_ATTRIB = First, LAST_EXPR_ATTRIB = Last
}

Functions

void markAttributeIdentifiers (IdentifierPool &idPool)
AttributeID getAttributeID (const char *start, const char *end)
AttributeID getAttributeID (llvm::StringRef &name)
const char * getAttributeString (AttributeID ID)
bool isExprAttibute (AttributeID ID)
 Returns true if the given attribute ID can appear in an expression.

Enumeration Type Documentation

The following enumeration lists all of Comma's attributes.

UNKNOWN_ATTRIBUTE is a special marker which does not map to any attribute.

Enumerator:
UNKNOWN_ATTRIBUTE 
First 
Pos 
Val 
Last 
Range 
FIRST_ATTRIB 
LAST_ATTRIB 
FIRST_EXPR_ATTRIB 
LAST_EXPR_ATTRIB 

Definition at line 29 of file Attributes.h.


Function Documentation

AttributeID comma::attrib::getAttributeID ( llvm::StringRef &  name  )  [inline]

Returns the attribute id for the given string, or UNKNOWN_ATTRIBUTE if the string does not name an attribute.

Definition at line 63 of file Attributes.h.

AttributeID comma::attrib::getAttributeID ( const char *  start,
const char *  end 
)

Returns the attribute id for the string delimited by the pointers start and end, or UNKNOWN_ATTRIBUTE if the string does not name an attribute.

Definition at line 43 of file Attributes.cpp.

const char * comma::attrib::getAttributeString ( AttributeID  ID  ) 

Returns a null terminated string naming the given attribute. UNKNOWN_ATTRBIUTE is not a valid ID in this case.

Definition at line 28 of file Attributes.cpp.

bool comma::attrib::isExprAttibute ( AttributeID  ID  )  [inline]

Returns true if the given attribute ID can appear in an expression.

Definition at line 72 of file Attributes.h.

void comma::attrib::markAttributeIdentifiers ( IdentifierPool &  idPool  ) 

Marks all of the identifiers in the given pool with their associated attributeID.

Definition at line 33 of file Attributes.cpp.


Generated on 1 Feb 2010 for Comma by  doxygen 1.6.1