mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 15:18:26 -05:00
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:
@@ -44,7 +44,7 @@ public:
|
||||
void ClearTables();
|
||||
|
||||
// Store options from command line flags.
|
||||
void Parse(const std::string& flags);
|
||||
void Parse(std::string const& flags);
|
||||
void ParseFinish();
|
||||
|
||||
void PrependInheritedString(std::string const& key);
|
||||
@@ -73,17 +73,17 @@ public:
|
||||
bool IsManaged() const;
|
||||
// Write options to output.
|
||||
void OutputPreprocessorDefinitions(std::ostream& fout, int indent,
|
||||
const std::string& lang);
|
||||
std::string const& lang);
|
||||
void OutputAdditionalIncludeDirectories(std::ostream& fout, int indent,
|
||||
const std::string& lang);
|
||||
std::string const& lang);
|
||||
void OutputFlagMap(std::ostream& fout, int indent);
|
||||
void SetConfiguration(const std::string& config);
|
||||
const std::string& GetConfiguration() const;
|
||||
void SetConfiguration(std::string const& config);
|
||||
std::string const& GetConfiguration() const;
|
||||
|
||||
protected:
|
||||
virtual void OutputFlag(std::ostream& fout, int indent,
|
||||
const std::string& tag,
|
||||
const std::string& content) = 0;
|
||||
std::string const& tag,
|
||||
std::string const& content) = 0;
|
||||
|
||||
private:
|
||||
cmLocalVisualStudioGenerator* LocalGenerator;
|
||||
|
||||
Reference in New Issue
Block a user