[clang] Delete copy constructor/assignment; NFC (PR #145689)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 25 05:19:26 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-codegen
Author: Aaron Ballman (AaronBallman)
<details>
<summary>Changes</summary>
This is an RAII object and static analysis was flagging it for not following the rule of three (or five).
---
Full diff: https://github.com/llvm/llvm-project/pull/145689.diff
1 Files Affected:
- (modified) clang/lib/CodeGen/CodeGenFunction.h (+3)
``````````diff
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();
``````````
</details>
https://github.com/llvm/llvm-project/pull/145689
More information about the cfe-commits
mailing list