class CFGElement

Declaration

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

Description

Represents a top-level expression in a basic block.

Declared at: clang/include/clang/Analysis/CFG.h:55

Member Variables

protected llvm::PointerIntPair<void*, 2> Data1
protected llvm::PointerIntPair<void*, 2> Data2

Method Overview

  • protected CFGElement(clang::CFGElement::Kind kind, const void * Ptr1, const void * Ptr2 = nullptr)
  • protected CFGElement()
  • public template <typename T>T castAs() const
  • public void dump() const
  • public void dumpToStream(llvm::raw_ostream & OS) const
  • public template <typename T>Optional<T> getAs() const
  • public clang::CFGElement::Kind getKind() const

Methods

CFGElement(clang::CFGElement::Kind kind,
           const void* Ptr1,
           const void* Ptr2 = nullptr)

Declared at: clang/include/clang/Analysis/CFG.h:86

Parameters

clang::CFGElement::Kind kind
const void* Ptr1
const void* Ptr2 = nullptr

CFGElement()

Declared at: clang/include/clang/Analysis/CFG.h:92

template <typename T>
T castAs() const

Description

Convert to the specified CFGElement type, asserting that this CFGElement is of the desired type.

Declared at: clang/include/clang/Analysis/CFG.h:98

Templates

T

void dump() const

Declared at: clang/include/clang/Analysis/CFG.h:127

void dumpToStream(llvm::raw_ostream& OS) const

Declared at: clang/include/clang/Analysis/CFG.h:125

Parameters

llvm::raw_ostream& OS

template <typename T>
Optional<T> getAs() const

Description

Convert to the specified CFGElement type, returning None if this CFGElement is not of the desired type.

Declared at: clang/include/clang/Analysis/CFG.h:109

Templates

T

clang::CFGElement::Kind getKind() const

Declared at: clang/include/clang/Analysis/CFG.h:118