[PATCH] D115931: [analyzer] Enable move semantics for CallDescriptionMap
Endre Fülöp via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 20 03:16:10 PST 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe0321eb86158: [analyzer] Enable move semantics for CallDescriptionMap (authored by gamesh411).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115931/new/
https://reviews.llvm.org/D115931
Files:
clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallDescription.h
Index: clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallDescription.h
===================================================================
--- clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallDescription.h
+++ clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallDescription.h
@@ -141,6 +141,9 @@
CallDescriptionMap(const CallDescriptionMap &) = delete;
CallDescriptionMap &operator=(const CallDescription &) = delete;
+ CallDescriptionMap(CallDescriptionMap &&) = default;
+ CallDescriptionMap &operator=(CallDescriptionMap &&) = default;
+
LLVM_NODISCARD const T *lookup(const CallEvent &Call) const {
// Slow path: linear lookup.
// TODO: Implement some sort of fast path.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115931.395401.patch
Type: text/x-patch
Size: 721 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211220/c4fa7995/attachment.bin>
More information about the cfe-commits
mailing list