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 | 3bdb8fd6c9f383d1335b57efc3fbebacee771043 (patch) | |
tree | 4deb5d3439248730559988b127b380c5fb1457f0 /clang-tools-extra | |
parent | [AArch64] Add test for constant shrinking with multiple users (NFC). (diff) | |
download | llvm-project-3bdb8fd6c9f383d1335b57efc3fbebacee771043.tar.gz llvm-project-3bdb8fd6c9f383d1335b57efc3fbebacee771043.tar.bz2 llvm-project-3bdb8fd6c9f383d1335b57efc3fbebacee771043.zip |
[clang-tidy] tryfix documentation build
llvm-svn: 350763
Diffstat (limited to 'clang-tools-extra')
-rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/modernize-use-nodiscard.rst | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-nodiscard.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-nodiscard.rst index 88507e8e9abc..f35bf2d4d5ba 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-nodiscard.rst +++ b/clang-tools-extra/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 |