clang 20.0.0git
Public Member Functions | List of all members
clang::interp::SourceInfo Class Referencefinal

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

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/AST/ByteCode/Source.h"

Public Member Functions

 SourceInfo ()
 
 SourceInfo (const Stmt *E)
 
 SourceInfo (const Decl *D)
 
SourceLocation getLoc () const
 
SourceRange getRange () 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 77 of file Source.h.

Constructor & Destructor Documentation

◆ SourceInfo() [1/3]

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

Definition at line 79 of file Source.h.

◆ SourceInfo() [2/3]

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

Definition at line 80 of file Source.h.

◆ SourceInfo() [3/3]

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

Definition at line 81 of file Source.h.

Member Function Documentation

◆ asDecl()

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

Definition at line 87 of file Source.h.

Referenced by getLoc(), and getRange().

◆ asExpr()

const Expr * SourceInfo::asExpr ( ) const

Definition at line 35 of file Source.cpp.

Referenced by getLoc(), and getRange().

◆ asStmt()

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

Definition at line 86 of file Source.h.

Referenced by getLoc(), and getRange().

◆ getLoc()

SourceLocation SourceInfo::getLoc ( ) const

◆ getRange()

SourceRange SourceInfo::getRange ( ) const

◆ operator bool()

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

Definition at line 90 of file Source.h.


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