[PATCH] D80531: [clang-tidy]: Added modernize-replace-disallow-copy-and-assign-macro
Eugene Zelenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 26 06:27:35 PDT 2020
Eugene.Zelenko added inline comments.
================
Comment at: clang-tools-extra/docs/clang-tidy/checks/modernize-replace-disallow-copy-and-assign-macro.rst:23
+ private:
+ - DISALLOW_COPY_AND_ASSIGN(Foo);
+ + Foo(const Foo &) = delete;
----------------
I think two code snippets would be more readable.
================
Comment at: clang-tools-extra/docs/clang-tidy/checks/modernize-replace-disallow-copy-and-assign-macro.rst:29
+Known Limitations
+-----------------
+* Notice that the migration example above leaves the ``private`` access
----------------
Please insert empty line below.
================
Comment at: clang-tools-extra/docs/clang-tidy/checks/modernize-replace-disallow-copy-and-assign-macro.rst:31
+* Notice that the migration example above leaves the ``private`` access
+ specification untouched. This opens room for improvement, yes I know.
+
----------------
Please refer to //modernize-use-equals-delete// instead of second statement.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80531/new/
https://reviews.llvm.org/D80531
More information about the cfe-commits
mailing list