summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/docs
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2017-11-27 22:59:33 +0000
committerAaron Ballman <aaron@aaronballman.com>2017-11-27 22:59:33 +0000
commitc566139632f4221b363931642eb637e0757a78d7 (patch)
tree700d0d74f4d9c82a7004cd7a2f51eecc14414fb0 /clang-tools-extra/docs
parent256cc48df62c8dc394ee71ebec85b8b10eb1cddf (diff)
downloadbcm5719-llvm-c566139632f4221b363931642eb637e0757a78d7.tar.gz
bcm5719-llvm-c566139632f4221b363931642eb637e0757a78d7.zip
Add an option to misc-move-const-arg to not diagnose on trivially copyable types.
Patch by Oleg Smolsky llvm-svn: 319111
Diffstat (limited to 'clang-tools-extra/docs')
-rw-r--r--clang-tools-extra/docs/clang-tidy/checks/misc-move-const-arg.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-move-const-arg.rst b/clang-tools-extra/docs/clang-tidy/checks/misc-move-const-arg.rst
index 00f47533495..f8764a0c1b5 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/misc-move-const-arg.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/misc-move-const-arg.rst
@@ -27,3 +27,11 @@ Here are examples of each of the three cases:
void f(const string &s);
string s;
f(std::move(s)); // Warning: passing result of std::move as a const reference argument; no move will actually happen
+
+Options
+-------
+
+.. option:: CheckTriviallyCopyableMove
+
+ If non-zero, enables detection of trivially copyable types that do not
+ have a move constructor. Default is non-zero.
OpenPOWER on IntegriCloud