class SourceMapper
Declaration
class SourceMapper { /* full declaration omitted */ };
Description
Interface for classes which map locations to sources.
Declared at: clang/lib/AST/Interp/Source.h:87
Method Overview
- public const clang::Expr * getExpr(clang::interp::Function * F, clang::interp::CodePtr PC) const
- public clang::SourceLocation getLocation(clang::interp::Function * F, clang::interp::CodePtr PC) const
- public virtual clang::interp::SourceInfo getSource(clang::interp::Function * F, clang::interp::CodePtr PC) const
- public virtual ~SourceMapper()
Methods
¶const clang::Expr* getExpr(
clang::interp::Function* F,
clang::interp::CodePtr PC) const
const clang::Expr* getExpr(
clang::interp::Function* F,
clang::interp::CodePtr PC) const
Description
Returns the expression if an opcode belongs to one, null otherwise.
Declared at: clang/lib/AST/Interp/Source.h:95
Parameters
¶clang::SourceLocation getLocation(
clang::interp::Function* F,
clang::interp::CodePtr PC) const
clang::SourceLocation getLocation(
clang::interp::Function* F,
clang::interp::CodePtr PC) const
Description
Returns the location from which an opcode originates.
Declared at: clang/lib/AST/Interp/Source.h:97
Parameters
¶virtual clang::interp::SourceInfo getSource(
clang::interp::Function* F,
clang::interp::CodePtr PC) const
virtual clang::interp::SourceInfo getSource(
clang::interp::Function* F,
clang::interp::CodePtr PC) const
Description
Returns source information for a given PC in a function.
Declared at: clang/lib/AST/Interp/Source.h:92
Parameters
¶virtual ~SourceMapper()
virtual ~SourceMapper()
Declared at: clang/lib/AST/Interp/Source.h:89