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.
This commit is contained in:
Robert Schulze 2022-05-08 18:36:26 +02:00
parent 6eb9843fb8
commit a10f3e46c7
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -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,