summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-30 19:00:47 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-01-30 19:00:58 (GMT)
commiteb2c23868fe712a0c79b3afe6618e20507c0f9f5 (patch)
tree8414fc263dd01dbcee636d531638291fd7a17c34 /Source/cmMakefile.h
parent748d024551d8f447046363ad617fc72bdd977fd2 (diff)
parentb05b778a2dfbcb6978d652dfa27bd52cc649f736 (diff)
downloadCMake-eb2c23868fe712a0c79b3afe6618e20507c0f9f5.zip
CMake-eb2c23868fe712a0c79b3afe6618e20507c0f9f5.tar.gz
CMake-eb2c23868fe712a0c79b3afe6618e20507c0f9f5.tar.bz2
Merge topic 'tidy-use-equals-delete'
b05b778a2d clang-tidy: Use `= delete` Acked-by: Kitware Robot <kwrobot@kitware.com> Rejected-by: vvs31415 <vstakhovsky@fastmail.com> Merge-request: !2848
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 2bd44e2..70a5689 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -65,8 +65,6 @@ public:
*/
class cmMakefile
{
- CM_DISABLE_COPY(cmMakefile)
-
public:
/* Mark a variable as used */
void MarkVariableAsUsed(const std::string& var);
@@ -84,6 +82,9 @@ public:
*/
~cmMakefile();
+ cmMakefile(cmMakefile const&) = delete;
+ cmMakefile& operator=(cmMakefile const&) = delete;
+
cmDirectoryId GetDirectoryId() const;
bool ReadListFile(const std::string& filename);
@@ -780,15 +781,18 @@ public:
/** Helper class to push and pop scopes automatically. */
class ScopePushPop
{
- CM_DISABLE_COPY(ScopePushPop)
public:
ScopePushPop(cmMakefile* m)
: Makefile(m)
{
this->Makefile->PushScope();
}
+
~ScopePushPop() { this->Makefile->PopScope(); }
+ ScopePushPop(ScopePushPop const&) = delete;
+ ScopePushPop& operator=(ScopePushPop const&) = delete;
+
private:
cmMakefile* Makefile;
};