clang 24.0.0git
clang::interp::SourceMapper Class Referenceabstract

Interface for classes which map locations to sources. More...

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

Inheritance diagram for clang::interp::SourceMapper:
[legend]

Public Member Functions

virtual ~SourceMapper ()
virtual SourceInfo getSource (CodePtr PC) const =0
 Returns source information for a given PC in a function.
const ExprgetExpr (CodePtr PC) const
 Returns the expression if an opcode belongs to one, null otherwise.
SourceLocation getLocation (CodePtr PC) const
 Returns the location from which an opcode originates.
SourceRange getRange (CodePtr PC) const

Detailed Description

Interface for classes which map locations to sources.

Definition at line 127 of file Source.h.

Constructor & Destructor Documentation

◆ ~SourceMapper()

virtual clang::interp::SourceMapper::~SourceMapper ( )
inlinevirtual

Definition at line 129 of file Source.h.

Member Function Documentation

◆ getExpr()

const Expr * SourceMapper::getExpr ( CodePtr PC) const

Returns the expression if an opcode belongs to one, null otherwise.

Definition at line 35 of file Source.cpp.

References clang::interp::SourceInfo::asExpr(), and getSource().

◆ getLocation()

SourceLocation SourceMapper::getLocation ( CodePtr PC) const

Returns the location from which an opcode originates.

Definition at line 39 of file Source.cpp.

References clang::interp::SourceInfo::getLoc(), and getSource().

◆ getRange()

SourceRange SourceMapper::getRange ( CodePtr PC) const

Definition at line 43 of file Source.cpp.

References clang::interp::SourceInfo::getRange(), and getSource().

◆ getSource()

virtual SourceInfo clang::interp::SourceMapper::getSource ( CodePtr PC) const
pure virtual

Returns source information for a given PC in a function.

Implemented in clang::interp::EvalEmitter.

Referenced by getExpr(), getLocation(), and getRange().


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