From: Haojian Wu Date: Fri, 4 Aug 2017 11:25:05 +0000 (+0000) Subject: [clang-tidy] Add missing documents for "IgnoreMacros" option. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a030d1bbf8aecd78bd622624fbd15a1760e2dcf;p=platform%2Fupstream%2Fllvm.git [clang-tidy] Add missing documents for "IgnoreMacros" option. llvm-svn: 310051 --- diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-make-shared.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-make-shared.rst index cf59d19..e73b320 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-make-shared.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-make-shared.rst @@ -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`. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-bool-literals.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-bool-literals.rst index 7ce048f..792d3a4 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-bool-literals.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-bool-literals.rst @@ -18,3 +18,11 @@ Finds integer literals which are cast to ``bool``. 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`. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-using.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-using.rst index 14172bb..1456a91 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-using.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-using.rst @@ -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`. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-declaration.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-declaration.rst index 4b5d0a5..8ce7aac 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-declaration.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-declaration.rst @@ -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`.