Focused crawls are collections of frequently-updated webcrawl data from narrow (as opposed to broad or wide) web crawls, often focused on a single domain or subdomain.
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.
lhmouse
changed the title
LGTM.com - false positive
C++ false positive: return statement requested after a call to a [[noreturn]] function
Apr 23, 2020
Thanks for the report. It looks like the analysis is getting confused because we forgot to propagate the [[noreturn]] attribute to instantiations of a function template. I'm working on a fix now.
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; areturn
statement is unnecessary.References
ASTERIA_THROW
: https://lgtm.com/projects/g/lhmouse/asteria/snapshot/125fa22efeb5dd86142984195bc51adbddcd6c5e/files/asteria/src/utilities.hpp?sort=name&dir=ASC&mode=heatmap#x3cb8f8cc1a4b1672:1::rocket::sprintf_and_throw<::std::runtime_error>
: https://lgtm.com/projects/g/lhmouse/asteria/snapshot/125fa22efeb5dd86142984195bc51adbddcd6c5e/files/asteria/rocket/throw.hpp?sort=name&dir=ASC&mode=heatmap#L16The text was updated successfully, but these errors were encountered: