Author: Shafik Yaghmour Date: 2025-12-19T07:31:03-08:00 New Revision: 33c85e9a1bd00c9d5915bdc5490e7dfa50e9c67f
URL: https://github.com/llvm/llvm-project/commit/33c85e9a1bd00c9d5915bdc5490e7dfa50e9c67f DIFF: https://github.com/llvm/llvm-project/commit/33c85e9a1bd00c9d5915bdc5490e7dfa50e9c67f.diff LOG: [NFC][Clang] Apply Rule of Three to BuildLockset (#172908) Static analysis flagged BuildLockset as not following the Rule of Three, so I just added deleted copy ctor and copy assignment. Added: Modified: clang/lib/Analysis/ThreadSafety.cpp Removed: ################################################################################ diff --git a/clang/lib/Analysis/ThreadSafety.cpp b/clang/lib/Analysis/ThreadSafety.cpp index c8d61534d0441..60d9c0f3b0ed2 100644 --- a/clang/lib/Analysis/ThreadSafety.cpp +++ b/clang/lib/Analysis/ThreadSafety.cpp @@ -1771,6 +1771,8 @@ class BuildLockset : public ConstStmtVisitor<BuildLockset> { } ~BuildLockset() { Analyzer->SxBuilder.setLookupLocalVarExpr(nullptr); } + BuildLockset(const BuildLockset &) = delete; + BuildLockset &operator=(const BuildLockset &) = delete; void VisitUnaryOperator(const UnaryOperator *UO); void VisitBinaryOperator(const BinaryOperator *BO); _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
