Skip to content

Commit

Permalink
Add missing throw keyword (valhalla#3651)
Browse files Browse the repository at this point in the history
Co-authored-by: Siarhei Fedartsou <[email protected]>
  • Loading branch information
Siarhei Fedartsou and Siarhei Fedartsou authored Jun 12, 2022
1 parent e64edcc commit cc73deb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
Checks: 'clang-*,performance*,-performance-move-const-arg,misc-unused-parameters'
Checks: 'bugprone-throw-keyword-missing,clang-*,performance*,-performance-move-const-arg,misc-unused-parameters'
WarningsAsErrors: ''
AnalyzeTemporaryDtors: false
CheckOptions:
Expand Down
2 changes: 1 addition & 1 deletion src/meili/topk_search.cc
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void EnlargedViterbiSearch::ClonePath(const std::vector<StateId>& path) {
for (const auto& pair : clone_) {
const auto added = vs_.AddStateId(pair.second);
if (!added) {
std::runtime_error("generated clone state IDs must be unique");
throw std::runtime_error("generated clone state IDs must be unique");
}
}
}
Expand Down

0 comments on commit cc73deb

Please sign in to comment.