[clazy] [Bug 378677] New: returning-void-expression false positive
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Wed Apr 12 00:01:23 BST 2017
https://bugs.kde.org/show_bug.cgi?id=378677
Bug ID: 378677
Summary: returning-void-expression false positive
Product: clazy
Version: unspecified
Platform: unspecified
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: oktal3700 at gmail.com
CC: smartins at kde.org
Target Milestone: ---
The returning-void-expression warning is spuriously generated by any code that
returns a braced-initializer, such as the following testcase:
int test()
{
return {};
}
In Clang's AST, before semantic analysis, the type of a braced-initializer is
void.
The AST visitor should skip the warning if the return value is-a InitListExpr.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list