[clang-tools-extra] r310051 - [clang-tidy] Add missing documents for "IgnoreMacros" option.

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 4 04:25:05 PDT 2017


Author: hokein
Date: Fri Aug  4 04:25:05 2017
New Revision: 310051

URL: http://llvm.org/viewvc/llvm-project?rev=310051&view=rev
Log:
[clang-tidy] Add missing documents for "IgnoreMacros" option.

Modified:
    clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-make-shared.rst
    clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-bool-literals.rst
    clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-using.rst
    clang-tools-extra/trunk/docs/clang-tidy/checks/readability-redundant-declaration.rst

Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-make-shared.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-make-shared.rst?rev=310051&r1=310050&r2=310051&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-make-shared.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-make-shared.rst Fri Aug  4 04:25:05 2017
@@ -43,3 +43,8 @@ Options
 
    A string specifying which include-style is used, `llvm` or `google`. Default
    is `llvm`.
+
+.. option:: IgnoreMacros
+
+   If set to non-zero, the check will not give warnings inside macros. Default
+   is `1`.

Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-bool-literals.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-bool-literals.rst?rev=310051&r1=310050&r2=310051&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-bool-literals.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-bool-literals.rst Fri Aug  4 04:25:05 2017
@@ -18,3 +18,11 @@ Finds integer literals which are cast to
   bool f = true;
   std::ios_base::sync_with_stdio(false);
   bool x = p ? true : false;
+
+Options
+-------
+
+.. option:: IgnoreMacros
+
+   If set to non-zero, the check will not give warnings inside macros. Default
+   is `1`.

Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-using.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-using.rst?rev=310051&r1=310050&r2=310051&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-using.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-using.rst Fri Aug  4 04:25:05 2017
@@ -24,3 +24,11 @@ After:
   using MyPtrType = void (Class::*)() const;
 
 This check requires using C++11 or higher to run.
+
+Options
+-------
+
+.. option:: IgnoreMacros
+
+   If set to non-zero, the check will not give warnings inside macros. Default
+   is `1`.

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=310051&r1=310050&r2=310051&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 Fri Aug  4 04:25:05 2017
@@ -27,3 +27,11 @@ manually:
 
 * When the declarations are in different header files;
 * When multiple variables are declared together.
+
+Options
+-------
+
+.. option:: IgnoreMacros
+
+   If set to non-zero, the check will not give warnings inside macros. Default
+   is `1`.




More information about the cfe-commits mailing list