| Summary: | [f.p] False report for return if function is inside another function | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Sergey Prigogin <eclipse.sprigogin> |
| Component: | cdt-codan | Assignee: | Elena Laskavaia <elaskavaia.cdt> |
| Status: | RESOLVED FIXED | QA Contact: | Elena Laskavaia <elaskavaia.cdt> |
| Severity: | normal | ||
| Priority: | P3 | CC: | cdtdoug, yevshif |
| Version: | 7.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
confused with function inside another one :O *** cdt cvs genie on behalf of elaskavaia *** Bug 315525: fix to suppress errors in inner functions [*] ReturnChecker.java 1.10 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/ReturnChecker.java?root=Tools_Project&r1=1.9&r2=1.10 (In reply to comment #2) With this fix would void test() { class A { public: void m() { return 0; } }; } still produce an error? Nope. This is false negative now. I will fix it after 7.0 was fixed in 7.0 |
void test() { class A { public: int m() { return 0; } }; } return 0; statement is flagged with: Return vas value, in function returning void.