Skip to content

Commit

Permalink
Format with clang-format 18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
graphemecluster committed May 10, 2024
1 parent f45a850 commit 3c117ef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/rime/algo/encoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/rime/algo/syllabifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
4 changes: 2 additions & 2 deletions src/rime/dict/dict_compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<ResourceResolver> resolver(
Expand Down
4 changes: 2 additions & 2 deletions src/rime/dict/entry_collector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 3c117ef

Please sign in to comment.