diff options
author | Jonas Toth <jonas.toth@gmail.com> | 2019-01-09 21:19:44 +0000 |
---|---|---|
committer | Jonas Toth <jonas.toth@gmail.com> | 2019-01-09 21:19:44 +0000 |
commit | 4ed34a30b599d3e776885ed6a29f9a1f5960294a (patch) | |
tree | 673aa8ad7907a8f5b220d9630499c258650cd199 | |
parent | c7ce58519d66df31d847a0b38d7d5ecacd1b684d (diff) |
[clang-tidy] tryfix documentation build
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@350763 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | docs/clang-tidy/checks/modernize-use-nodiscard.rst | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/docs/clang-tidy/checks/modernize-use-nodiscard.rst b/docs/clang-tidy/checks/modernize-use-nodiscard.rst index 88507e8e..f35bf2d4 100644 --- a/docs/clang-tidy/checks/modernize-use-nodiscard.rst +++ b/docs/clang-tidy/checks/modernize-use-nodiscard.rst @@ -8,18 +8,19 @@ order to highlight at compile time which return values should not be ignored. 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 |