[clang-tools-extra] r350763 - [clang-tidy] tryfix documentation build

Jonas Toth via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 9 13:19:44 PST 2019


Author: jonastoth
Date: Wed Jan  9 13:19:44 2019
New Revision: 350763

URL: http://llvm.org/viewvc/llvm-project?rev=350763&view=rev
Log:
[clang-tidy] tryfix documentation build

Modified:
    clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-nodiscard.rst

Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-nodiscard.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-nodiscard.rst?rev=350763&r1=350762&r2=350763&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-nodiscard.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-nodiscard.rst Wed Jan  9 13:19:44 2019
@@ -8,18 +8,19 @@ order to highlight at compile time which
 
 Member functions need to satisfy the following conditions to be considered by
 this check:
-  - no ``[[nodiscard]]``, ``[[noreturn]]``, ``__attribute__((warn_unused_result))``, ``[[clang::warn_unused_result]]`` nor ``[[gcc::warn_unused_result]]`` attribute,
-  - non-void return type,
-  - non-template return types,
-  - const member function,
-  - non-variadic functions,
-  - no non-const reference parameters,
-  - no pointer parameters,
-  - no template parameters,
-  - no template function parameters,
-  - not be a member of a class with mutable member variables,
-  - no Lambdas,
-  - no conversion functions.
+
+ - no ``[[nodiscard]]``, ``[[noreturn]]``, ``__attribute__((warn_unused_result))``, ``[[clang::warn_unused_result]]`` nor ``[[gcc::warn_unused_result]]`` attribute,
+ - non-void return type,
+ - non-template return types,
+ - const member function,
+ - non-variadic functions,
+ - no non-const reference parameters,
+ - no pointer parameters,
+ - no template parameters,
+ - no template function parameters,
+ - not be a member of a class with mutable member variables,
+ - no Lambdas,
+ - no conversion functions.
 
 Such functions have no means of altering any state or passing values other than
 via the return type. Unless the member functions are altering state via some




More information about the cfe-commits mailing list