summaryrefslogtreecommitdiffstats
path: root/Source/cmExportBuildAndroidMKGenerator.cxx
diff options
context:
space:
mode:
authorMatthew Woehlke <matthew.woehlke@kitware.com>2024-07-08 17:27:51 (GMT)
committerMatthew Woehlke <matthew.woehlke@kitware.com>2024-07-18 16:08:43 (GMT)
commit6c66340a647fc7fa59e3f63e9344c05d3e760bfb (patch)
tree3773f376b265fbb95ca4dca9508092485dd73cc9 /Source/cmExportBuildAndroidMKGenerator.cxx
parent1bceab352023123b4a3e11c7910bc86b949f8e86 (diff)
downloadCMake-6c66340a647fc7fa59e3f63e9344c05d3e760bfb.zip
CMake-6c66340a647fc7fa59e3f63e9344c05d3e760bfb.tar.gz
CMake-6c66340a647fc7fa59e3f63e9344c05d3e760bfb.tar.bz2
export: Fix const placement
Use clang-format to fix placement of const qualifiers to be consistently right of the typename. The inconsistency was getting annoying, especially as the following refactor changes a lot of methods and sometimes adds const. (Being inconsistent within a file is not ideal, but in some cases there was inconsistency within single lines!)
Diffstat (limited to 'Source/cmExportBuildAndroidMKGenerator.cxx')
-rw-r--r--Source/cmExportBuildAndroidMKGenerator.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/cmExportBuildAndroidMKGenerator.cxx b/Source/cmExportBuildAndroidMKGenerator.cxx
index cbc05dd..4fdbbc4 100644
--- a/Source/cmExportBuildAndroidMKGenerator.cxx
+++ b/Source/cmExportBuildAndroidMKGenerator.cxx
@@ -27,7 +27,7 @@ cmExportBuildAndroidMKGenerator::cmExportBuildAndroidMKGenerator()
}
void cmExportBuildAndroidMKGenerator::GenerateImportHeaderCode(
- std::ostream& os, const std::string&)
+ std::ostream& os, std::string const&)
{
os << "LOCAL_PATH := $(call my-dir)\n\n";
}
@@ -37,7 +37,7 @@ void cmExportBuildAndroidMKGenerator::GenerateImportFooterCode(std::ostream&)
}
void cmExportBuildAndroidMKGenerator::GenerateExpectedTargetsCode(
- std::ostream&, const std::string&)
+ std::ostream&, std::string const&)
{
}
@@ -57,8 +57,8 @@ void cmExportBuildAndroidMKGenerator::GenerateImportTargetCode(
}
void cmExportBuildAndroidMKGenerator::GenerateImportPropertyCode(
- std::ostream&, const std::string&, const std::string&,
- cmGeneratorTarget const*, ImportPropertyMap const&, const std::string&)
+ std::ostream&, std::string const&, std::string const&,
+ cmGeneratorTarget const*, ImportPropertyMap const&, std::string const&)
{
}
@@ -68,8 +68,8 @@ void cmExportBuildAndroidMKGenerator::GenerateMissingTargetsCheckCode(
}
void cmExportBuildAndroidMKGenerator::GenerateInterfaceProperties(
- const cmGeneratorTarget* target, std::ostream& os,
- const ImportPropertyMap& properties)
+ cmGeneratorTarget const* target, std::ostream& os,
+ ImportPropertyMap const& properties)
{
std::string config;
if (!this->Configurations.empty()) {
@@ -80,11 +80,11 @@ void cmExportBuildAndroidMKGenerator::GenerateInterfaceProperties(
}
void cmExportBuildAndroidMKGenerator::GenerateInterfaceProperties(
- const cmGeneratorTarget* target, std::ostream& os,
- const ImportPropertyMap& properties, GenerateType type,
+ cmGeneratorTarget const* target, std::ostream& os,
+ ImportPropertyMap const& properties, GenerateType type,
std::string const& config)
{
- const bool newCMP0022Behavior =
+ bool const newCMP0022Behavior =
target->GetPolicyStatusCMP0022() != cmPolicies::WARN &&
target->GetPolicyStatusCMP0022() != cmPolicies::OLD;
if (!newCMP0022Behavior) {