Skip to content

Commit

Permalink
Clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
wengxt committed Apr 29, 2024
1 parent e90ef36 commit 245f6f8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/testpinyincontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,14 @@ int main() {

FCITX_ASSERT(c.selected());
FCITX_ASSERT(c.selectedSentence() == "Hello你What");

}

{
c.clear();
c.type("shounihao");
auto shouPinyin = PinyinEncoder::encodeFullPinyin("shou");
c.selectCustom(4, "", std::string_view(shouPinyin.data(), shouPinyin.size()));
c.selectCustom(4, "",
std::string_view(shouPinyin.data(), shouPinyin.size()));
size_t i = 0;
for (const auto &candidate : c.candidatesToCursor()) {
if (candidate.toString() == "你好") {
Expand Down
2 changes: 1 addition & 1 deletion tools/libime_history.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include "libime/core/historybigram.h"
#include <exception>
#include <fstream>
#include <unistd.h>
#include <iostream>
#include <unistd.h>

void usage(const char *argv0) {
std::cout << "Usage: " << argv0 << " [-c] <source> <dest>" << std::endl
Expand Down
2 changes: 1 addition & 1 deletion tools/libime_pinyindict.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#include "libime/pinyin/pinyindictionary.h"
#include <fcitx-utils/log.h>
#include <fstream>
#include <unistd.h>
#include <iostream>
#include <unistd.h>

void usage(const char *argv0) {
std::cout << "Usage: " << argv0 << " [-d] <source> <dest>" << std::endl
Expand Down
2 changes: 1 addition & 1 deletion tools/libime_prediction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#include <cmath>
#include <fcitx-utils/log.h>
#include <fstream>
#include <unistd.h>
#include <iostream>
#include <string>
#include <unistd.h>
#include <unordered_map>
#include <vector>

Expand Down
2 changes: 1 addition & 1 deletion tools/libime_tabledict.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

#include "libime/table/tablebaseddictionary.h"
#include <fstream>
#include <unistd.h>
#include <iostream>
#include <optional>
#include <string>
#include <unistd.h>

void usage(const char *argv0) {
std::cout << "Usage: " << argv0
Expand Down

0 comments on commit 245f6f8

Please sign in to comment.