LLVM  3.7.0
Public Types | Public Member Functions | List of all members
llvm::LLLexer Class Reference

#include <LLLexer.h>

Public Types

typedef SMLoc LocTy
 

Public Member Functions

 LLLexer (StringRef StartBuf, SourceMgr &SM, SMDiagnostic &, LLVMContext &C)
 
lltok::Kind Lex ()
 
LocTy getLoc () const
 
lltok::Kind getKind () const
 
const std::string & getStrVal () const
 
TypegetTyVal () const
 
unsigned getUIntVal () const
 
const APSIntgetAPSIntVal () const
 
const APFloatgetAPFloatVal () const
 
bool Error (LocTy L, const Twine &Msg) const
 
bool Error (const Twine &Msg) const
 
void Warning (LocTy WarningLoc, const Twine &Msg) const
 
void Warning (const Twine &Msg) const
 

Detailed Description

Definition at line 29 of file LLLexer.h.

Member Typedef Documentation

Definition at line 53 of file LLLexer.h.

Constructor & Destructor Documentation

LLLexer::LLLexer ( StringRef  StartBuf,
SourceMgr SM,
SMDiagnostic Err,
LLVMContext C 
)
explicit

Definition at line 166 of file LLLexer.cpp.

References llvm::StringRef::begin().

Member Function Documentation

bool LLLexer::Error ( LocTy  L,
const Twine Msg 
) const

Definition at line 32 of file LLLexer.cpp.

References llvm::SourceMgr::DK_Error, and llvm::SourceMgr::GetMessage().

bool llvm::LLLexer::Error ( const Twine Msg) const
inline

Definition at line 64 of file LLLexer.h.

References Error(), and getLoc().

Referenced by Error().

const APFloat& llvm::LLLexer::getAPFloatVal ( ) const
inline

Definition at line 60 of file LLLexer.h.

const APSInt& llvm::LLLexer::getAPSIntVal ( ) const
inline

Definition at line 59 of file LLLexer.h.

lltok::Kind llvm::LLLexer::getKind ( ) const
inline

Definition at line 55 of file LLLexer.h.

LocTy llvm::LLLexer::getLoc ( ) const
inline

Definition at line 54 of file LLLexer.h.

References llvm::SMLoc::getFromPointer().

Referenced by Error(), and Warning().

const std::string& llvm::LLLexer::getStrVal ( ) const
inline

Definition at line 56 of file LLLexer.h.

Type* llvm::LLLexer::getTyVal ( ) const
inline

Definition at line 57 of file LLLexer.h.

unsigned llvm::LLLexer::getUIntVal ( ) const
inline

Definition at line 58 of file LLLexer.h.

lltok::Kind llvm::LLLexer::Lex ( )
inline

Definition at line 49 of file LLLexer.h.

Referenced by if(), and llvm::LLParser::Run().

void LLLexer::Warning ( LocTy  WarningLoc,
const Twine Msg 
) const

Definition at line 37 of file LLLexer.cpp.

References llvm::SourceMgr::DK_Warning, and llvm::SourceMgr::PrintMessage().

void llvm::LLLexer::Warning ( const Twine Msg) const
inline

Definition at line 67 of file LLLexer.h.

References getLoc(), and Warning().

Referenced by Warning().


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