Support clang-tidy (#1034)

This commit is contained in:
Fangjun Kuang
2024-06-19 20:51:57 +08:00
committed by GitHub
parent 656b9fa1c8
commit a11c859971
63 changed files with 381 additions and 237 deletions

View File

@@ -52,8 +52,9 @@ static void DecodeOne(const float *log_probs, int32_t num_rows,
if (ok) {
std::vector<int32_t> isymbols_out;
std::vector<int32_t> osymbols_out;
ok = fst::GetLinearSymbolSequence(fst_out, &isymbols_out, &osymbols_out,
nullptr);
/*ok =*/fst::GetLinearSymbolSequence(fst_out, &isymbols_out,
&osymbols_out, nullptr);
// TODO(fangjun): handle ok is false
std::vector<int64_t> tokens;
tokens.reserve(isymbols_out.size());