Community
Participate
Working Groups
void test() { class A { public: int m() { return; // won't report error here } }; }
Created attachment 171596 [details] patch
Created attachment 171597 [details] patch with tests
fixed on head and 7.0.1
*** cdt cvs genie on behalf of elaskavaia *** Bug 316154: support processing of inner functions [*] AbstractAstFunctionChecker.java 1.6 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/model/AbstractAstFunctionChecker.java?root=Tools_Project&r1=1.5&r2=1.6 [*] ReturnCheckerTest.java 1.3 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/ReturnCheckerTest.java?root=Tools_Project&r1=1.2&r2=1.3
*** cdt cvs genie on behalf of elaskavaia *** Bug 316154: support processing of inner functions [*] AbstractAstFunctionChecker.java 1.5.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/model/AbstractAstFunctionChecker.java?root=Tools_Project&r1=1.5&r2=1.5.2.1 [*] ReturnCheckerTest.java 1.2.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/ReturnCheckerTest.java?root=Tools_Project&r1=1.2&r2=1.2.2.1