[PATCH] D115934: [analyzer] Add range constructor to CallDescriptionMap

Endre Fülöp via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 20 02:15:52 PST 2021


gamesh411 updated this revision to Diff 395394.
gamesh411 added a comment.

Remove static asserts as it only makes the tests more brittle


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115934/new/

https://reviews.llvm.org/D115934

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
@@ -134,6 +134,9 @@
       std::initializer_list<std::pair<CallDescription, T>> &&List)
       : LinearMap(List) {}
 
+  template <typename InputIt>
+  CallDescriptionMap(InputIt First, InputIt Last) : LinearMap(First, Last) {}
+
   ~CallDescriptionMap() = default;
 
   // These maps are usually stored once per checker, so let's make sure


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115934.395394.patch
Type: text/x-patch
Size: 640 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211220/63ec24c3/attachment.bin>


More information about the cfe-commits mailing list