From 25e693cc46324b4ec588530de542bba8af6f47c6 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 31 Jan 2026 21:11:11 +0100 Subject: style: add vertical compression rules to clang-format - Enabled AllowShortFunctionsOnASingleLine: All - Enabled AllowShortBlocksOnASingleLine: Always - Enabled AllowShortIfStatementsOnASingleLine: Always - Enabled AllowShortLoopsOnASingleLine: true - Set MaxEmptyLinesToKeep: 1 - Applied formatting to all source files. --- tools/seq_compiler.cc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'tools/seq_compiler.cc') diff --git a/tools/seq_compiler.cc b/tools/seq_compiler.cc index 4846244..e84877b 100644 --- a/tools/seq_compiler.cc +++ b/tools/seq_compiler.cc @@ -24,8 +24,7 @@ struct SequenceEntry { std::string trim(const std::string &str) { size_t first = str.find_first_not_of(" "); - if (std::string::npos == first) - return str; + if (std::string::npos == first) return str; size_t last = str.find_last_not_of(" "); return str.substr(first, (last - first + 1)); } @@ -52,8 +51,7 @@ int main(int argc, char *argv[]) { while (std::getline(in_file, line)) { line_num++; std::string trimmed = trim(line); - if (trimmed.empty() || trimmed[0] == '#') - continue; + if (trimmed.empty() || trimmed[0] == '#') continue; std::stringstream ss(trimmed); std::string command; @@ -87,9 +85,7 @@ int main(int argc, char *argv[]) { // Remove leading whitespace from getline if any (getline reads the space // after priority) extra_args = trim(extra_args); - if (!extra_args.empty()) { - extra_args = ", " + extra_args; - } + if (!extra_args.empty()) { extra_args = ", " + extra_args; } current_seq->effects.push_back( {class_name, start, end, priority, extra_args}); -- cgit v1.2.3