summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionContext.cxx
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-01-21 16:15:21 (GMT)
committerBrad King <brad.king@kitware.com>2019-01-22 18:03:04 (GMT)
commit5a0784ddea62ee653a3a1199d4ff2140868d2c1d (patch)
tree0cbdb3658d8d5a270be900ddb829a4afe5cb4b32 /Source/cmGeneratorExpressionContext.cxx
parentbcc9ea2b3d9cd3b882dbb2a23502b0392cb21d1b (diff)
downloadCMake-5a0784ddea62ee653a3a1199d4ff2140868d2c1d.zip
CMake-5a0784ddea62ee653a3a1199d4ff2140868d2c1d.tar.gz
CMake-5a0784ddea62ee653a3a1199d4ff2140868d2c1d.tar.bz2
clang-tidy: Pass by value
Diffstat (limited to 'Source/cmGeneratorExpressionContext.cxx')
-rw-r--r--Source/cmGeneratorExpressionContext.cxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/Source/cmGeneratorExpressionContext.cxx b/Source/cmGeneratorExpressionContext.cxx
index a6dde5d..6d97331 100644
--- a/Source/cmGeneratorExpressionContext.cxx
+++ b/Source/cmGeneratorExpressionContext.cxx
@@ -2,15 +2,17 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmGeneratorExpressionContext.h"
+#include <utility>
+
cmGeneratorExpressionContext::cmGeneratorExpressionContext(
- cmLocalGenerator* lg, std::string const& config, bool quiet,
+ cmLocalGenerator* lg, std::string config, bool quiet,
cmGeneratorTarget const* headTarget, const cmGeneratorTarget* currentTarget,
- bool evaluateForBuildsystem, cmListFileBacktrace const& backtrace,
- std::string const& language)
- : Backtrace(backtrace)
+ bool evaluateForBuildsystem, cmListFileBacktrace backtrace,
+ std::string language)
+ : Backtrace(std::move(backtrace))
, LG(lg)
- , Config(config)
- , Language(language)
+ , Config(std::move(config))
+ , Language(std::move(language))
, HeadTarget(headTarget)
, CurrentTarget(currentTarget)
, Quiet(quiet)