clang API Documentation

Public Types | Public Member Functions
clang::GCCAsmStmt::AsmStringPiece Class Reference

#include <Stmt.h>

List of all members.

Public Types

enum  Kind { String, Operand }

Public Member Functions

 AsmStringPiece (const std::string &S)
 AsmStringPiece (unsigned OpNo, const std::string &S, SourceLocation Begin, SourceLocation End)
bool isString () const
bool isOperand () const
const std::string & getString () const
unsigned getOperandNo () const
CharSourceRange getRange () const
char getModifier () const

Detailed Description

AsmStringPiece - this is part of a decomposed asm string specification (for use with the AnalyzeAsmString function below). An asm string is considered to be a concatenation of these parts.

Definition at line 1578 of file Stmt.h.


Member Enumeration Documentation

Enumerator:
String 
Operand 

Definition at line 1580 of file Stmt.h.


Constructor & Destructor Documentation

clang::GCCAsmStmt::AsmStringPiece::AsmStringPiece ( const std::string &  S) [inline]

Definition at line 1592 of file Stmt.h.

clang::GCCAsmStmt::AsmStringPiece::AsmStringPiece ( unsigned  OpNo,
const std::string &  S,
SourceLocation  Begin,
SourceLocation  End 
) [inline]

Definition at line 1593 of file Stmt.h.


Member Function Documentation

getModifier - Get the modifier for this operand, if present. This returns '\0' if there was no modifier.

Definition at line 380 of file Stmt.cpp.

References clang::isLetter(), and isOperand().

Referenced by clang::Sema::ActOnGCCAsmStmt().

Definition at line 1606 of file Stmt.h.

References isOperand().

Referenced by clang::Sema::ActOnGCCAsmStmt(), and isOperandMentioned().

Definition at line 1611 of file Stmt.h.

References isOperand().

Referenced by clang::Sema::ActOnGCCAsmStmt().

const std::string& clang::GCCAsmStmt::AsmStringPiece::getString ( ) const [inline]

Definition at line 1602 of file Stmt.h.

Referenced by clang::Sema::ActOnGCCAsmStmt().

Definition at line 1600 of file Stmt.h.

References Operand.

Referenced by clang::Sema::ActOnGCCAsmStmt(), getModifier(), getOperandNo(), getRange(), and isOperandMentioned().

Definition at line 1599 of file Stmt.h.

References String.


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