class PathDiagnosticEventPiece

Declaration

class PathDiagnosticEventPiece : public PathDiagnosticSpotPiece { /* full declaration omitted */ };

Description

Node - This class is used to maintain the singly linked bucket list in a folding set.

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:534

Inherits from: PathDiagnosticSpotPiece

Member Variables

private Optional<bool> IsPrunable

Method Overview

Inherited from PathDiagnosticSpotPiece:

Inherited from PathDiagnosticPiece:

Inherited from FoldingSetBase::Node:

Methods

PathDiagnosticEventPiece(
    const clang::ento::PathDiagnosticLocation&
        pos,
    llvm::StringRef s,
    bool addPosRange = true)

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:538

Parameters

const clang::ento::PathDiagnosticLocation& pos
llvm::StringRef s
bool addPosRange = true

static bool classof(
    const clang::ento::PathDiagnosticPiece* P)

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:557

Parameters

const clang::ento::PathDiagnosticPiece* P

void dump() const

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:555

bool isPrunable() const

Description

Return true if the diagnostic piece is prunable.

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:553

void setPrunable(bool isPrunable,
                 bool override = false)

Description

Mark the diagnostic piece as being potentially prunable. This flag may have been previously set, at which point it will not be reset unless one specifies to do so.

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:546

Parameters

bool isPrunable
bool override = false

~PathDiagnosticEventPiece()

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:541