[PATCH] D106296: [analyzer] Fix for faulty namespace test in SmartPtrModelling
Valeriy Savchenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 20 01:52:36 PDT 2021
vsavchenko added inline comments.
================
Comment at: clang/lib/StaticAnalyzer/Checkers/SmartPtrModeling.cpp:252-255
+ const auto *Decl = Call.getDecl();
+ if (!Decl)
+ return false;
+ return Decl->getDeclContext()->isStdNamespace();
----------------
Can we use a one-liner that I suggested?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106296/new/
https://reviews.llvm.org/D106296
More information about the cfe-commits
mailing list