class SourceInfo

Declaration

class SourceInfo { /* full declaration omitted */ };

Description

Describes the statement/declaration an opcode was generated from.

Declared at: clang/lib/AST/Interp/Source.h:66

Member Variables

private llvm::PointerUnion<const Decl*, const Stmt*> Source

Method Overview

Methods

SourceInfo()

Declared at: clang/lib/AST/Interp/Source.h:68

SourceInfo(const clang::Stmt* E)

Declared at: clang/lib/AST/Interp/Source.h:69

Parameters

const clang::Stmt* E

SourceInfo(const clang::Decl* D)

Declared at: clang/lib/AST/Interp/Source.h:70

Parameters

const clang::Decl* D

const clang::Decl* asDecl() const

Declared at: clang/lib/AST/Interp/Source.h:75

const clang::Expr* asExpr() const

Declared at: clang/lib/AST/Interp/Source.h:76

const clang::Stmt* asStmt() const

Declared at: clang/lib/AST/Interp/Source.h:74

clang::SourceLocation getLoc() const

Declared at: clang/lib/AST/Interp/Source.h:72

bool operator bool() const

Declared at: clang/lib/AST/Interp/Source.h:78