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-b...@kde.org Reporter: oktal3...@gmail.com CC: smart...@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 watching all bug changes.