[PATCH] D55793: [clang-tidy] Add duplicated access specifier readability check (PR25403)

Eugene Zelenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 16 10:12:11 PDT 2019


Eugene.Zelenko added inline comments.


================
Comment at: clang-tools-extra/docs/clang-tidy/checks/readability-redundant-access-specifiers.rst:34
+   If set to non-zero, the check will also give warning if the first access
+   specifier declaration is redundant (e.g. `private` inside `class`). Default
+   is `0`.
----------------
Please use double back-ticks for language keywords, like private anc class.


================
Comment at: clang-tools-extra/docs/clang-tidy/checks/readability-redundant-access-specifiers.rst:47
+
+If ``CheckFirstDeclaration`` option is enabled, a warning about redundant
+access specifier will be emitted, since ``public`` is the default member access
----------------
Please use single back-ticks for option names.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55793/new/

https://reviews.llvm.org/D55793





More information about the cfe-commits mailing list