https://llvm.org/bugs/show_bug.cgi?id=31487
Bug ID: 31487 Summary: new warning: warn when returning void expression Product: clang Version: 3.8 Hardware: PC OS: All Status: NEW Severity: enhancement Priority: P Component: C++ Assignee: unassignedclangb...@nondot.org Reporter: l...@bobbyperu.info CC: dgre...@apple.com, llvm-bugs@lists.llvm.org Classification: Unclassified This warning would catch bugs such as: void doSomething() void func() { if (condition) return // Oops, forgot ; so doSomething() will be called doSomething(); } -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs