clang  10.0.0svn
Public Member Functions | List of all members
clang::interp::SourceInfo Class Reference

Describes the statement/declaration an opcode was generated from. More...

#include "/opt/doxygen-docs/src/llvm/tools/clang/lib/AST/Interp/Source.h"

Public Member Functions

 SourceInfo ()
 
 SourceInfo (const Stmt *E)
 
 SourceInfo (const Decl *D)
 
SourceLocation getLoc () const
 
const StmtasStmt () const
 
const DeclasDecl () const
 
const ExprasExpr () const
 
 operator bool () const
 

Detailed Description

Describes the statement/declaration an opcode was generated from.

Definition at line 81 of file Source.h.

Constructor & Destructor Documentation

◆ SourceInfo() [1/3]

clang::interp::SourceInfo::SourceInfo ( )
inline

Definition at line 83 of file Source.h.

◆ SourceInfo() [2/3]

clang::interp::SourceInfo::SourceInfo ( const Stmt E)
inline

Definition at line 84 of file Source.h.

◆ SourceInfo() [3/3]

clang::interp::SourceInfo::SourceInfo ( const Decl D)
inline

Definition at line 85 of file Source.h.

Member Function Documentation

◆ asDecl()

const Decl* clang::interp::SourceInfo::asDecl ( ) const
inline

Definition at line 90 of file Source.h.

◆ asExpr()

const Expr * SourceInfo::asExpr ( ) const

Definition at line 25 of file Source.cpp.

Referenced by clang::interp::SourceMapper::getExpr(), and getLoc().

◆ asStmt()

const Stmt* clang::interp::SourceInfo::asStmt ( ) const
inline

Definition at line 89 of file Source.h.

◆ getLoc()

SourceLocation SourceInfo::getLoc ( ) const

Definition at line 15 of file Source.cpp.

References asExpr().

Referenced by clang::interp::State::CCEDiag(), and clang::interp::State::FFDiag().

◆ operator bool()

clang::interp::SourceInfo::operator bool ( ) const
inline

Definition at line 93 of file Source.h.


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