[NFC][Clang][Sema] Apply rule of three to Sema helper classes (#193835)
Static analysis flagged these classes. They declared a destructor but
not copy constructor or copy assignment. Since these classes don't need
them, this change declares them deleted.
diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h
index 78a9d72..a5e9348 100644
--- a/clang/include/clang/Sema/Sema.h
+++ b/clang/include/clang/Sema/Sema.h
@@ -13684,6 +13684,9 @@
}
~ScopedCodeSynthesisContext() { S.popCodeSynthesisContext(); }
+ ScopedCodeSynthesisContext(const ScopedCodeSynthesisContext &) = delete;
+ ScopedCodeSynthesisContext &
+ operator=(const ScopedCodeSynthesisContext &) = delete;
};
/// List of active code synthesis contexts.
@@ -14160,6 +14163,8 @@
public:
FPFeaturesStateRAII(Sema &S);
~FPFeaturesStateRAII();
+ FPFeaturesStateRAII(const FPFeaturesStateRAII &) = delete;
+ FPFeaturesStateRAII &operator=(const FPFeaturesStateRAII &) = delete;
FPOptionsOverride getOverrides() { return OldOverrides; }
private: