C++ false positive: return statement requested after a call to a [[noreturn]] function
オープン
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 はまだ評価されていません。