[clang-tools-extra] r285778 - [Documentation] Clang-tidy readability-redundant-declaration consistency.
Eugene Zelenko via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 1 17:43:23 PDT 2016
Author: eugenezelenko
Date: Tue Nov 1 19:43:23 2016
New Revision: 285778
URL: http://llvm.org/viewvc/llvm-project?rev=285778&view=rev
Log:
[Documentation] Clang-tidy readability-redundant-declaration consistency.
Release notes checks order and consistent Clang-tidy readability-redundant-declaration description.
Modified:
clang-tools-extra/trunk/docs/ReleaseNotes.rst
clang-tools-extra/trunk/docs/clang-tidy/checks/readability-redundant-declaration.rst
Modified: clang-tools-extra/trunk/docs/ReleaseNotes.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/ReleaseNotes.rst?rev=285778&r1=285777&r2=285778&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/ReleaseNotes.rst (original)
+++ clang-tools-extra/trunk/docs/ReleaseNotes.rst Tue Nov 1 19:43:23 2016
@@ -123,17 +123,17 @@ Improvements to clang-tidy
Flags function parameters of a pointer type that could be changed to point to
a constant type instead.
+- New `readability-redundant-declaration
+ <http://clang.llvm.org/extra/clang-tidy/checks/readability-redundant-declaration.html>`_ check
+
+ Finds redundant variable and function declarations.
+
- New `readability-redundant-member-init
<http://clang.llvm.org/extra/clang-tidy/checks/readability-redundant-member-init.html>`_ check
Flags member initializations that are unnecessary because the same default
constructor would be called if they were not present.
-- New `readability-redundant-declaration
- <http://clang.llvm.org/extra/clang-tidy/checks/readability-redundant-declaration.html>`_ check
-
- Warns about duplicate variable declarations.
-
Fixed bugs:
- `modernize-make-unique
Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/readability-redundant-declaration.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/readability-redundant-declaration.rst?rev=285778&r1=285777&r2=285778&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy/checks/readability-redundant-declaration.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy/checks/readability-redundant-declaration.rst Tue Nov 1 19:43:23 2016
@@ -21,7 +21,9 @@ They can for instance be unintentional l
when code has been moved around. Having redundant declarations could in worst
case mean that there are typos in the code that cause bugs.
-Normally the code can be automatically fixed, clang-tidy can remove the second
-declaration. However there are 2 cases when you need to fix the code manually:
- * When the declarations are in different header files.
- * When multiple variables are declared together.
+Normally the code can be automatically fixed, :program:`clang-tidy` can remove
+the second declaration. However there are 2 cases when you need to fix the code
+manually:
+
+* When the declarations are in different header files;
+* When multiple variables are declared together.
More information about the cfe-commits
mailing list