class FieldRegion

Declaration

class FieldRegion : public DeclRegion { /* full declaration omitted */ };

Description

TypedValueRegion - An abstract class representing regions having a typed value.

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h:1084

Inherits from: DeclRegion

Member Variables

private const clang::FieldDecl* FD

Inherited from SubRegion:

protected superRegion

Method Overview

  • private FieldRegion(const clang::FieldDecl * fd, const clang::ento::SubRegion * sReg)
  • public void Profile(llvm::FoldingSetNodeID & ID) const
  • private static void ProfileRegion(llvm::FoldingSetNodeID & ID, const clang::FieldDecl * FD, const clang::ento::MemRegion * superRegion)
  • public bool canPrintPretty() const
  • public bool canPrintPrettyAsExpr() const
  • public static bool classof(const clang::ento::MemRegion * R)
  • public void dumpToStream(llvm::raw_ostream & os) const
  • public const clang::FieldDecl * getDecl() const
  • public clang::QualType getValueType() const
  • public void printPretty(llvm::raw_ostream & os) const
  • public void printPrettyAsExpr(llvm::raw_ostream & os) const

Inherited from DeclRegion:

Inherited from TypedValueRegion:

Inherited from TypedRegion:

Inherited from SubRegion:

Inherited from MemRegion:

Inherited from FoldingSetBase::Node:

Methods

FieldRegion(const clang::FieldDecl* fd,
            const clang::ento::SubRegion* sReg)

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h:1089

Parameters

const clang::FieldDecl* fd
const clang::ento::SubRegion* sReg

void Profile(llvm::FoldingSetNodeID& ID) const

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h:1105

Parameters

llvm::FoldingSetNodeID& ID

static void ProfileRegion(
    llvm::FoldingSetNodeID& ID,
    const clang::FieldDecl* FD,
    const clang::ento::MemRegion* superRegion)

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h:1094

Parameters

llvm::FoldingSetNodeID& ID
const clang::FieldDecl* FD
const clang::ento::MemRegion* superRegion

bool canPrintPretty() const

Description

Returns true if this region can be printed in a user-friendly way.

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h:1114

bool canPrintPrettyAsExpr() const

Description

Returns true if this region's textual representation can be used as part of a larger expression.

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h:1116

static bool classof(
    const clang::ento::MemRegion* R)

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h:1119

Parameters

const clang::ento::MemRegion* R

void dumpToStream(llvm::raw_ostream& os) const

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h:1112

Parameters

llvm::raw_ostream& os

const clang::FieldDecl* getDecl() const

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h:1103

clang::QualType getValueType() const

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h:1107

void printPretty(llvm::raw_ostream& os) const

Description

Print the region for use in diagnostics.

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h:1115

Parameters

llvm::raw_ostream& os

void printPrettyAsExpr(
    llvm::raw_ostream& os) const

Description

Print the region as expression. When this region represents a subexpression, the method is for printing an expression containing it.

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h:1117

Parameters

llvm::raw_ostream& os