Revise C++ coding style using clang-format with "east const"

Run the `clang-format.bash` script to update all our C and C++ code to a
new style defined by `.clang-format`, now with "east const" enforcement.
Use `clang-format` version 18.

* If you reached this commit for a line in `git blame`, re-run the blame
  operation starting at the parent of this commit to see older history
  for the content.

* See the parent commit for instructions to rebase a change across this
  style transition commit.

Issue: #26123
This commit is contained in:
Kitware Robot
2025-01-23 11:54:40 -05:00
committed by Brad King
parent 6ef947ea97
commit 0b96ae1f6a
887 changed files with 9690 additions and 9692 deletions
+5 -5
View File
@@ -18,7 +18,7 @@ class cmListFileBacktrace;
static void FinalAction(cmMakefile& makefile, std::string const& dest,
std::vector<std::string> const& args);
static std::string FindInstallSource(cmMakefile& makefile, const char* name);
static std::string FindInstallSource(cmMakefile& makefile, char const* name);
bool cmInstallProgramsCommand(std::vector<std::string> const& args,
cmExecutionStatus& status)
@@ -39,7 +39,7 @@ bool cmInstallProgramsCommand(std::vector<std::string> const& args,
std::string const& dest = args[0];
std::vector<std::string> const finalArgs(args.begin() + 1, args.end());
mf.AddGeneratorAction(
[dest, finalArgs](cmLocalGenerator& lg, const cmListFileBacktrace&) {
[dest, finalArgs](cmLocalGenerator& lg, cmListFileBacktrace const&) {
FinalAction(*lg.GetMakefile(), dest, finalArgs);
});
return true;
@@ -89,8 +89,8 @@ static void FinalAction(cmMakefile& makefile, std::string const& dest,
}
// Use a file install generator.
const std::string no_permissions;
const std::string no_rename;
std::string const no_permissions;
std::string const no_rename;
bool no_exclude_from_all = false;
std::string no_component =
makefile.GetSafeDefinition("CMAKE_INSTALL_DEFAULT_COMPONENT_NAME");
@@ -108,7 +108,7 @@ static void FinalAction(cmMakefile& makefile, std::string const& dest,
* present in the build tree. If a full path is given, it is just
* returned.
*/
static std::string FindInstallSource(cmMakefile& makefile, const char* name)
static std::string FindInstallSource(cmMakefile& makefile, char const* name)
{
if (cmSystemTools::FileIsFullPath(name) ||
cmGeneratorExpression::Find(name) == 0) {