[PATCH] D150411: [NFC][Clang][Coverity] Fix Static Code Analysis Concerns with copy without assign

Tom Honermann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 18 13:14:42 PDT 2023


tahonermann added a comment.

One last minor request and then I'm happy with this.



================
Comment at: clang/include/clang/Sema/ParsedAttr.h:705-707
+  // The move assignment operator is defined as deleted pending further
+  // motivation.
+  AttributePool &operator=(AttributePool &&pool) = delete;
----------------
Let's explicitly delete the copy assignment operator too since the copy constructor is deleted.


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

https://reviews.llvm.org/D150411



More information about the cfe-commits mailing list