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
+7 -7
View File
@@ -29,26 +29,26 @@ public:
~cmTest();
//! Set the test name
void SetName(const std::string& name);
void SetName(std::string const& name);
std::string GetName() const { return this->Name; }
void SetCommand(std::vector<std::string> const& command);
std::vector<std::string> const& GetCommand() const { return this->Command; }
//! Set/Get a property of this source file
void SetProperty(const std::string& prop, cmValue value);
void SetProperty(const std::string& prop, std::nullptr_t)
void SetProperty(std::string const& prop, cmValue value);
void SetProperty(std::string const& prop, std::nullptr_t)
{
this->SetProperty(prop, cmValue{ nullptr });
}
void SetProperty(const std::string& prop, const std::string& value)
void SetProperty(std::string const& prop, std::string const& value)
{
this->SetProperty(prop, cmValue(value));
}
void AppendProperty(const std::string& prop, const std::string& value,
void AppendProperty(std::string const& prop, std::string const& value,
bool asString = false);
cmValue GetProperty(const std::string& prop) const;
bool GetPropertyAsBool(const std::string& prop) const;
cmValue GetProperty(std::string const& prop) const;
bool GetPropertyAsBool(std::string const& prop) const;
cmPropertyMap& GetProperties() { return this->Properties; }
/** Get the cmMakefile instance that owns this test. */