github / github/codeql

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

Aberta
#3,327 1 comentário 0 reações 1 responsável Reivindicada por @dbartol Ver no GitHub
C++ false-positive good first issue
Linguagem predominante
CodeQL
Estrelas
10.1k
Forks
2.1k
Merge médio
2d 15h
PRs com merge (30d)
141

Descrição

### 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>`:

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.