From a10f3e46c7ddf248bfb76efec66536609d14b08c Mon Sep 17 00:00:00 2001 From: Robert Schulze Date: Sun, 8 May 2022 18:36:26 +0200 Subject: [PATCH] Enable clang-tidy modernize-replace-disallow-copy-and-assign-macro Official docs: Finds macro expansions of DISALLOW_COPY_AND_ASSIGN(Type) and replaces them with a deleted copy constructor and a deleted assignment operator. Before the delete keyword was introduced in C++11 it was common practice to declare a copy constructor and an assignment operator as private members. This effectively makes them unusable to the public API of a class. With the advent of the delete keyword in C++11 we can abandon the private access of the copy constructor and the assignment operator and delete the methods entirely. --- .clang-tidy | 1 - 1 file changed, 1 deletion(-) diff --git a/.clang-tidy b/.clang-tidy index 19ad5e242fb..a731d40f502 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -78,7 +78,6 @@ Checks: '*, -modernize-concat-nested-namespaces, -modernize-deprecated-headers, -modernize-pass-by-value, - -modernize-replace-disallow-copy-and-assign-macro, -modernize-return-braced-init-list, -modernize-use-auto, -modernize-use-default-member-init,