[clang] 77618a9 - Delete copy constructor/assignment; NFC (#145689)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 25 06:11:04 PDT 2025


Author: Aaron Ballman
Date: 2025-06-25T09:11:00-04:00
New Revision: 77618a9253d22ed9010eef561dcff68b61c39115

URL: https://github.com/llvm/llvm-project/commit/77618a9253d22ed9010eef561dcff68b61c39115
DIFF: https://github.com/llvm/llvm-project/commit/77618a9253d22ed9010eef561dcff68b61c39115.diff

LOG: Delete copy constructor/assignment; NFC (#145689)

This is an RAII object and static analysis was flagging it for not
following the rule of three (or five).

Added: 
    

Modified: 
    clang/lib/CodeGen/CodeGenFunction.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 59f14b3e35fd0..6c32c98cec011 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -234,6 +234,9 @@ class ApplyAtomGroup {
   uint64_t OriginalAtom = 0;
   CGDebugInfo *DI = nullptr;
 
+  ApplyAtomGroup(const ApplyAtomGroup &) = delete;
+  void operator=(const ApplyAtomGroup &) = delete;
+
 public:
   ApplyAtomGroup(CGDebugInfo *DI);
   ~ApplyAtomGroup();


        


More information about the cfe-commits mailing list