From 3c117ef2411d820137ecc22f5264d3be1e34d31b Mon Sep 17 00:00:00 2001 From: graphemecluster Date: Fri, 10 May 2024 19:03:18 +0800 Subject: [PATCH] Format with clang-format 18.1 --- src/rime/algo/encoder.cc | 8 ++++---- src/rime/algo/syllabifier.h | 2 +- src/rime/dict/dict_compiler.cc | 4 ++-- src/rime/dict/entry_collector.cc | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/rime/algo/encoder.cc b/src/rime/algo/encoder.cc index 8e793c6aa3..64290424a8 100644 --- a/src/rime/algo/encoder.cc +++ b/src/rime/algo/encoder.cc @@ -255,13 +255,13 @@ bool TableEncoder::DfsEncode(const string& phrase, } string encoded; if (Encode(*code, &encoded)) { - DLOG(INFO) << "encode '" << phrase << "': " << "[" << code->ToString() - << "] -> [" << encoded << "]"; + DLOG(INFO) << "encode '" << phrase << "': " + << "[" << code->ToString() << "] -> [" << encoded << "]"; collector_->CreateEntry(phrase, encoded, value); return true; } else { - DLOG(WARNING) << "failed to encode '" << phrase << "': " << "[" - << code->ToString() << "]"; + DLOG(WARNING) << "failed to encode '" << phrase << "': " + << "[" << code->ToString() << "]"; return false; } } diff --git a/src/rime/algo/syllabifier.h b/src/rime/algo/syllabifier.h index 659339cfee..2eda3fb73b 100644 --- a/src/rime/algo/syllabifier.h +++ b/src/rime/algo/syllabifier.h @@ -20,7 +20,7 @@ class Corrector; using SyllableId = int32_t; struct EdgeProperties : SpellingProperties { - EdgeProperties(SpellingProperties sup) : SpellingProperties(sup){}; + EdgeProperties(SpellingProperties sup) : SpellingProperties(sup) {}; EdgeProperties() = default; bool is_correction = false; }; diff --git a/src/rime/dict/dict_compiler.cc b/src/rime/dict/dict_compiler.cc index 3d4ddaa23c..5996ee2cc3 100644 --- a/src/rime/dict/dict_compiler.cc +++ b/src/rime/dict/dict_compiler.cc @@ -123,8 +123,8 @@ bool DictCompiler::Compile(const path& schema_file) { } else { rebuild_prism = true; } - LOG(INFO) << dict_file << "[" << dict_files.size() << " file(s)]" << " (" - << dict_file_checksum << ")"; + LOG(INFO) << dict_file << "[" << dict_files.size() << " file(s)]" + << " (" << dict_file_checksum << ")"; LOG(INFO) << schema_file << " (" << schema_file_checksum << ")"; { the resolver( diff --git a/src/rime/dict/entry_collector.cc b/src/rime/dict/entry_collector.cc index 2fa571d87e..e9fa7404a9 100644 --- a/src/rime/dict/entry_collector.cc +++ b/src/rime/dict/entry_collector.cc @@ -114,8 +114,8 @@ void EntryCollector::Collect(const path& dict_file) { encode_queue.push({word, weight_str}); } if (!stem_str.empty() && !code_str.empty()) { - DLOG(INFO) << "add stem '" << word << "': " << "[" << code_str << "] = [" - << stem_str << "]"; + DLOG(INFO) << "add stem '" << word << "': " + << "[" << code_str << "] = [" << stem_str << "]"; stems[word].insert(stem_str); } }