summaryrefslogtreecommitdiff
path: root/Source/cmVariableWatchCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-09-09 13:38:01 -0400
committerBrad King <brad.king@kitware.com>2019-09-09 13:51:23 -0400
commit175d8c4bf6505eeb02bb588527f3ff7b5eb143b9 (patch)
tree4c9730af3501122952e493c54e6ad4c73dc838cd /Source/cmVariableWatchCommand.cxx
parent7c5ec91301f31e7caff6524ab83b5bb5c614d5d7 (diff)
downloadcmake-175d8c4bf6505eeb02bb588527f3ff7b5eb143b9.tar.gz
clang-tidy: Resolve performance-unnecessary-value-param diagnostics
Fix diagnostics that appear on macOS with clang-tidy-8. Suppress cases where we intentionally take an argument by value to let the caller choose whether to copy or move.
Diffstat (limited to 'Source/cmVariableWatchCommand.cxx')
-rw-r--r--Source/cmVariableWatchCommand.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmVariableWatchCommand.cxx b/Source/cmVariableWatchCommand.cxx
index db23efdc70..f9f7d66174 100644
--- a/Source/cmVariableWatchCommand.cxx
+++ b/Source/cmVariableWatchCommand.cxx
@@ -91,6 +91,7 @@ static void deleteVariableWatchCallbackData(void* client_data)
class FinalAction
{
public:
+ /* NOLINTNEXTLINE(performance-unnecessary-value-param) */
FinalAction(cmMakefile* makefile, std::string variable)
: Action(std::make_shared<Impl>(makefile, std::move(variable)))
{