|
| FMWalkAST (const CheckerBase *checker, clang::ento::BugReporter &br, clang::AnalysisDeclContext *ac, const NamedDecl *nd) |
|
void | VisitCallExpr (clang::CallExpr *CE) |
|
void | VisitChildren (clang::Stmt *S) |
|
void | VisitStmt (clang::Stmt *S) |
|
|
clang::AnalysisDeclContext * | AC |
|
clang::ento::BugReporter & | BR |
|
const CheckerBase * | Checker |
|
const NamedDecl * | ND |
|
Definition at line 20 of file FiniteMathChecker.cc.
◆ FMWalkAST()
clangcms::FMWalkAST::FMWalkAST |
( |
const CheckerBase * |
checker, |
|
|
clang::ento::BugReporter & |
br, |
|
|
clang::AnalysisDeclContext * |
ac, |
|
|
const NamedDecl * |
nd |
|
) |
| |
|
inline |
Definition at line 27 of file FiniteMathChecker.cc.
clang::AnalysisDeclContext * AC
const CheckerBase * Checker
clang::ento::BugReporter & BR
◆ VisitCallExpr()
void clangcms::FMWalkAST::VisitCallExpr |
( |
clang::CallExpr * |
CE | ) |
|
Definition at line 46 of file FiniteMathChecker.cc.
References clangcms::support::isInterestingLocation(), eostools::move(), edmIntegrityCheck::report, and AlCaHLTBitMon_QueryRunRegistry::string.
47 const clang::Expr *Callee = CE->getCallee();
48 const FunctionDecl *FD = CE->getDirectCallee();
52 const char *sfile =
BR.getSourceManager().getPresumedLoc(CE->getExprLoc()).getFilename();
58 clang::IdentifierInfo *II = FD->getIdentifier();
62 if (!II->isStr(
"isnan") && !II->isStr(
"isinf"))
65 clang::ento::PathDiagnosticLocation CELoc =
66 clang::ento::PathDiagnosticLocation::createBegin(CE,
BR.getSourceManager(),
AC);
67 BugType *BT =
new clang::ento::BugType(
Checker,
68 "std::isnan / std::isinf does not work when fast-math is used. Please use " 69 "edm::isNotFinite from 'FWCore/Utilities/interface/isFinite.h'",
71 std::unique_ptr<clang::ento::BasicBugReport>
report =
72 std::make_unique<clang::ento::BasicBugReport>(*BT, BT->getCheckerName(), CELoc);
clang::AnalysisDeclContext * AC
bool isInterestingLocation(const std::string &d)
const CheckerBase * Checker
clang::ento::BugReporter & BR
◆ VisitChildren()
void clangcms::FMWalkAST::VisitChildren |
( |
clang::Stmt * |
S | ) |
|
Definition at line 39 of file FiniteMathChecker.cc.
References Exhume::I.
40 for (clang::Stmt::child_iterator
I =
S->child_begin(), E =
S->child_end();
I != E; ++
I)
41 if (clang::Stmt *
child = *
I) {
const std::complex< double > I
◆ VisitStmt()
void clangcms::FMWalkAST::VisitStmt |
( |
clang::Stmt * |
S | ) |
|
|
inline |
◆ AC
clang::AnalysisDeclContext* clangcms::FMWalkAST::AC |
|
private |
◆ BR
clang::ento::BugReporter& clangcms::FMWalkAST::BR |
|
private |
◆ Checker
const CheckerBase* clangcms::FMWalkAST::Checker |
|
private |
◆ ND
const NamedDecl* clangcms::FMWalkAST::ND |
|
private |