Welcome to the NetCologne GmbH open source mirroring service!

This machine mirrors various open-source projects. 20 Gbit/s uplink.

If there are any issues or you want another project mirrored, please contact mirror-service -=AT=- netcologne DOT de !

Comma: comma::PragmaImport Class Reference

comma::PragmaImport Class Reference

#include <Pragma.h>

Inheritance diagram for comma::PragmaImport:
Inheritance graph
[legend]
Collaboration diagram for comma::PragmaImport:
Collaboration graph
[legend]

List of all members.

Public Types

enum  Convention { UNKNOWN_CONVENTION, C }

Public Member Functions

 PragmaImport (Location loc, Convention convention, IdentifierInfo *entity, Expr *externalName)
Convention getConvention () const
 Returns the convention associated with this pragma.
IdentifierInfogetEntityIdInfo () const
 Returns the identifier naming the entity associated with this pragma.
const std::string & getExternalName () const
 Returns a string representation of the external name.



ExprgetExternalNameExpr ()
const ExprgetExternalNameExpr () const

Static Public Member Functions

static Convention getConventionID (llvm::StringRef &ref)

Detailed Description

Definition at line 114 of file Pragma.h.


Member Enumeration Documentation

Enumeration of the conventions supported by an import pragma. UNKNOWN_CONVENTION is a special marker which does not map to an actual convention name.

Enumerator:
UNKNOWN_CONVENTION 
C 

Definition at line 120 of file Pragma.h.


Constructor & Destructor Documentation

PragmaImport::PragmaImport ( Location  loc,
Convention  convention,
IdentifierInfo entity,
Expr externalName 
)

Definition at line 16 of file Pragma.cpp.


Member Function Documentation

Convention comma::PragmaImport::getConvention (  )  const [inline]

Returns the convention associated with this pragma.

Definition at line 133 of file Pragma.h.

PragmaImport::Convention PragmaImport::getConventionID ( llvm::StringRef &  ref  )  [static]

Returns the convention which the given string maps to, or UNKNOWN_CONVENTION if there is no mapping.

Definition at line 26 of file Pragma.cpp.

IdentifierInfo* comma::PragmaImport::getEntityIdInfo (  )  const [inline]

Returns the identifier naming the entity associated with this pragma.

Definition at line 136 of file Pragma.h.

const std::string& comma::PragmaImport::getExternalName (  )  const [inline]

Returns a string representation of the external name.

Definition at line 146 of file Pragma.h.

const Expr* comma::PragmaImport::getExternalNameExpr (  )  const [inline]

Returns the expression designating the external name of the entity. The expression is always of type String.

Definition at line 142 of file Pragma.h.

Expr* comma::PragmaImport::getExternalNameExpr (  )  [inline]

Returns the expression designating the external name of the entity. The expression is always of type String.

Definition at line 141 of file Pragma.h.


The documentation for this class was generated from the following files:

Generated on 1 Feb 2010 for Comma by  doxygen 1.6.1