clang  14.0.0git
Public Member Functions | List of all members
clang::interp::SourceInfo Class Reference

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

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/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 66 of file Source.h.

Constructor & Destructor Documentation

◆ SourceInfo() [1/3]

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

Definition at line 68 of file Source.h.

◆ SourceInfo() [2/3]

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

Definition at line 69 of file Source.h.

◆ SourceInfo() [3/3]

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

Definition at line 70 of file Source.h.

Member Function Documentation

◆ asDecl()

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

Definition at line 75 of file Source.h.

◆ asExpr()

const Expr * SourceInfo::asExpr ( ) const

Definition at line 25 of file Source.cpp.

Referenced by getLoc().

◆ asStmt()

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

Definition at line 74 of file Source.h.

◆ getLoc()

SourceLocation SourceInfo::getLoc ( ) const

◆ operator bool()

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

Definition at line 78 of file Source.h.


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