martong marked an inline comment as done.
martong added inline comments.

================
Comment at: clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp:151
+
+  using ValueConstraintPtr = std::shared_ptr<ValueConstraint>;
+  /// The complete list of constraints that defines a single branch.
----------------
Note here, we need a copyable, polymorphic and default initializable type 
(vector needs that). A raw pointer were good, however, we cannot default 
initialize that. unique_ptr makes the Summary class non-copyable, therefore not 
an option.
Releasing the copyablitly requirement would render the initialization of the 
Summary map infeasible.
Perhaps we could come up with a [[ https://www.youtube.com/watch?v=bIhUE5uUFOA 
| type erasure technique without inheritance ]] once we consider the shared_ptr 
as restriction, but for now that seems to be overkill.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D74973



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to