class LikelyFalsePositiveSuppressionBRVisitor

Declaration

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

Description

Suppress reports that might lead to known false positives. Currently this suppresses reports based on locations of bugs.

Declared at: clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h:520

Inherits from: BugReporterVisitor

Member Variables

Method Overview

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

Inherited from BugReporterVisitor:

Inherited from FoldingSetBase::Node:

Methods

void Profile(llvm::FoldingSetNodeID& ID) const

Declared at: clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h:528

Parameters

llvm::FoldingSetNodeID& ID

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

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/Core/BugReporter/BugReporterVisitors.h:532

Parameters

const clang::ento::ExplodedNode*
clang::ento::BugReporterContext&
clang::ento::PathSensitiveBugReport&

void finalizeVisitor(
    clang::ento::BugReporterContext& BRC,
    const clang::ento::ExplodedNode* N,
    clang::ento::PathSensitiveBugReport& BR)

Description

Last function called on the visitor, no further calls to VisitNode would follow.

Declared at: clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h:537

Parameters

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

static void* getTag()

Declared at: clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h:523