summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-10-21 14:19:31 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-10-21 14:19:47 (GMT)
commitccd313a074657f9ebf9ae6a4c9b71587000878af (patch)
tree6098a02a7f9c0b33efb002f8279bc51c195e4d90 /Source/cmGlobalNinjaGenerator.cxx
parent9367a7a6d5f8e41cdcee116882ede47e081e6ccf (diff)
parentbd705788f67741df88bf153825a5943b4b518818 (diff)
downloadCMake-ccd313a074657f9ebf9ae6a4c9b71587000878af.zip
CMake-ccd313a074657f9ebf9ae6a4c9b71587000878af.tar.gz
CMake-ccd313a074657f9ebf9ae6a4c9b71587000878af.tar.bz2
Merge topic 'constify'
bd705788f6 Constify some code as suggested by clang-tidy Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5391
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index 9e25a54..9b27bc5 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -1057,7 +1057,7 @@ void cmGlobalNinjaGenerator::CloseCompileCommandsStream()
}
}
-void cmGlobalNinjaGenerator::WriteDisclaimer(std::ostream& os)
+void cmGlobalNinjaGenerator::WriteDisclaimer(std::ostream& os) const
{
os << "# CMAKE generated file: DO NOT EDIT!\n"
<< "# Generated by \"" << this->GetName() << "\""
@@ -1088,7 +1088,7 @@ std::string cmGlobalNinjaGenerator::OrderDependsTargetForTarget(
void cmGlobalNinjaGenerator::AppendTargetOutputs(
cmGeneratorTarget const* target, cmNinjaDeps& outputs,
- const std::string& config, cmNinjaTargetDepends depends)
+ const std::string& config, cmNinjaTargetDepends depends) const
{
// for frameworks, we want the real name, not smple name
// frameworks always appear versioned, and the build.ninja