[PATCH] D73720: [Analyzer] Use note tags to track container begin and and changes
Artem Dergachev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 3 08:28:23 PST 2020
NoQ added a comment.
Also, yay, thanks for using the new API!
================
Comment at: clang/lib/StaticAnalyzer/Checkers/ContainerModeling.cpp:41
const SVal &OldCont = UndefinedVal()) const;
- void handleAssign(CheckerContext &C, const SVal &Cont) const;
- void handleClear(CheckerContext &C, const SVal &Cont) const;
- void handlePushBack(CheckerContext &C, const SVal &Cont) const;
- void handlePopBack(CheckerContext &C, const SVal &Cont) const;
- void handlePushFront(CheckerContext &C, const SVal &Cont) const;
- void handlePopFront(CheckerContext &C, const SVal &Cont) const;
+ void handleAssign(CheckerContext &C, const SVal &Cont,
+ const Expr *ContE) const;
----------------
While we're at it, let's not pass `SVal`s by reference? They're small value-types by design.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73720/new/
https://reviews.llvm.org/D73720
More information about the cfe-commits
mailing list