class TaintBugVisitor

Declaration

class TaintBugVisitor : public BugReporterVisitor { /* full declaration omitted */ };

Description

The bug visitor prints a diagnostic message at the location where a given variable was tainted.

Declared at: clang/include/clang/StaticAnalyzer/Checkers/Taint.h:89

Inherits from: BugReporterVisitor

Member Variables

private const clang::ento::SVal V

Method Overview

  • public void Profile(llvm::FoldingSetNodeID & ID) const
  • public TaintBugVisitor(const clang::ento::SVal V)
  • public clang::ento::PathDiagnosticPieceRef VisitNode(const clang::ento::ExplodedNode * N, clang::ento::BugReporterContext & BRC, clang::ento::PathSensitiveBugReport & BR)

Inherited from BugReporterVisitor:

Inherited from FoldingSetBase::Node:

Methods

void Profile(llvm::FoldingSetNodeID& ID) const

Declared at: clang/include/clang/StaticAnalyzer/Checkers/Taint.h:95

Parameters

llvm::FoldingSetNodeID& ID

TaintBugVisitor(const clang::ento::SVal V)

Declared at: clang/include/clang/StaticAnalyzer/Checkers/Taint.h:94

Parameters

const clang::ento::SVal V

clang::ento::PathDiagnosticPieceRef VisitNode(
    const clang::ento::ExplodedNode* N,
    clang::ento::BugReporterContext& BRC,
    clang::ento::PathSensitiveBugReport& BR)

Description

Return a diagnostic piece which should be associated with the given node. Note that this function does *not* get run on the very last node of the report, as the PathDiagnosticPiece associated with the last node should be unique. Use \ref getEndPath to customize the note associated with the report end instead. The last parameter can be used to register a new visitor with the given BugReport while processing a node.

Declared at: clang/include/clang/StaticAnalyzer/Checkers/Taint.h:97

Parameters

const clang::ento::ExplodedNode* N
clang::ento::BugReporterContext& BRC
clang::ento::PathSensitiveBugReport& BR