style: apply clang-format and enforce left pointer alignment

This commit is contained in:
Sebastien L
2026-02-12 04:48:38 +00:00
parent df225c120c
commit bf2fff44b8
148 changed files with 11508 additions and 12904 deletions

View File

@@ -4,7 +4,7 @@
std::string trim(const std::string& str) {
const size_t first = str.find_first_not_of(' ');
if (first == std::string::npos) {
if(first == std::string::npos) {
// String contains only spaces or is empty
return "";
}
@@ -13,10 +13,8 @@ std::string trim(const std::string& str) {
}
std::string& toLowerStr(std::string& str) {
for (auto& c : str) {
if (c >= 'A' && c <= 'Z') {
c = c - 'A' + 'a';
}
for(auto& c : str) {
if(c >= 'A' && c <= 'Z') { c = c - 'A' + 'a'; }
}
return str;
}