github / github/codeql

C++ false positive: return statement requested after a call to a [[noreturn]] function

オープン
#3,327 コメント 1 件 リアクション 0 件 担当者 1 名 @dbartol が担当を希望しています GitHub で見る
C++ false-positive good first issue
主要言語
CodeQL
スター
10.1k
フォーク
2.1k
平均マージ
2日 15時間
マージ済み PR(30日)
141

説明

### Synopsis

See references below for code.

The macro `ASTERIA_THROW()` [2] expands to a call to `::rocket::sprintf_and_throw<::std::runtime_error>()` [3], which is marked `[[noreturn]]`, so the enclosing function cannot return from this path; a `return` statement is unnecessary.

### References

1. Original alert:
2. `ASTERIA_THROW`:
3. `::rocket::sprintf_and_throw<::std::runtime_error>`:

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。