mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -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:
@@ -48,11 +48,11 @@ public:
|
||||
std::vector<cmPkgConfigEntry>& Data() { return Data_; }
|
||||
|
||||
private:
|
||||
int OnSpanNext(const char*, std::size_t len);
|
||||
static int OnSpanNextTr(llpkgc_t* parser, const char* at, std::size_t len);
|
||||
int OnSpanNext(char const*, std::size_t len);
|
||||
static int OnSpanNextTr(llpkgc_t* parser, char const* at, std::size_t len);
|
||||
|
||||
int OnKey(const char* at, std::size_t len);
|
||||
static int OnKeyTr(llpkgc_t* parser, const char* at, std::size_t len);
|
||||
int OnKey(char const* at, std::size_t len);
|
||||
static int OnKeyTr(llpkgc_t* parser, char const* at, std::size_t len);
|
||||
|
||||
int OnKeywordComplete();
|
||||
static int OnKeywordCompleteTr(llpkgc_t* parser);
|
||||
@@ -60,15 +60,15 @@ private:
|
||||
int OnVariableComplete();
|
||||
static int OnVariableCompleteTr(llpkgc_t* parser);
|
||||
|
||||
int OnValueLiteral(const char* at, std::size_t len);
|
||||
static int OnValueLiteralTr(llpkgc_t* parser, const char* at,
|
||||
int OnValueLiteral(char const* at, std::size_t len);
|
||||
static int OnValueLiteralTr(llpkgc_t* parser, char const* at,
|
||||
std::size_t len);
|
||||
|
||||
int OnValueLiteralComplete();
|
||||
static int OnValueLiteralCompleteTr(llpkgc_t* parser);
|
||||
|
||||
int OnValueVariable(const char* at, std::size_t len);
|
||||
static int OnValueVariableTr(llpkgc_t* parser, const char* at,
|
||||
int OnValueVariable(char const* at, std::size_t len);
|
||||
static int OnValueVariableTr(llpkgc_t* parser, char const* at,
|
||||
std::size_t len);
|
||||
|
||||
int OnValueVariableComplete();
|
||||
@@ -87,7 +87,7 @@ private:
|
||||
nullptr, // on_pkgc_complete
|
||||
};
|
||||
|
||||
const char* Ptr_;
|
||||
char const* Ptr_;
|
||||
std::size_t Len_;
|
||||
std::vector<cmPkgConfigEntry> Data_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user