clang  6.0.0svn
Public Types | Public Member Functions | List of all members
clang::GCCAsmStmt::AsmStringPiece Class Reference

AsmStringPiece - this is part of a decomposed asm string specification (for use with the AnalyzeAsmString function below). More...

#include "clang/AST/Stmt.h"

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
 getModifier - Get the modifier for this operand, if present. More...
 

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 1625 of file Stmt.h.

Member Enumeration Documentation

◆ Kind

Enumerator
String 
Operand 

Definition at line 1627 of file Stmt.h.

Constructor & Destructor Documentation

◆ AsmStringPiece() [1/2]

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

Definition at line 1639 of file Stmt.h.

◆ AsmStringPiece() [2/2]

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

Definition at line 1640 of file Stmt.h.

Member Function Documentation

◆ getModifier()

char GCCAsmStmt::AsmStringPiece::getModifier ( ) const

getModifier - Get the modifier for this operand, if present.

This returns '\0' if there was no modifier.

Definition at line 388 of file Stmt.cpp.

References clang::isLetter().

◆ getOperandNo()

unsigned clang::GCCAsmStmt::AsmStringPiece::getOperandNo ( ) const
inline

Definition at line 1653 of file Stmt.h.

Referenced by isOperandMentioned().

◆ getRange()

CharSourceRange clang::GCCAsmStmt::AsmStringPiece::getRange ( ) const
inline

Definition at line 1658 of file Stmt.h.

References clang::getModifier().

◆ getString()

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

Definition at line 1649 of file Stmt.h.

◆ isOperand()

bool clang::GCCAsmStmt::AsmStringPiece::isOperand ( ) const
inline

Definition at line 1647 of file Stmt.h.

Referenced by isOperandMentioned().

◆ isString()

bool clang::GCCAsmStmt::AsmStringPiece::isString ( ) const
inline

Definition at line 1646 of file Stmt.h.


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