| Summary: | Warning about "void" in late-specified return type | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Nathan Ridge <zeratul976> | ||||||
| Component: | cdt-codan | Assignee: | Marc-André Laperle <malaperle> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Elena Laskavaia <elaskavaia.cdt> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | cdtdoug, malaperle | ||||||
| Version: | 8.0 | ||||||||
| Target Milestone: | 8.0 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 189396 [details]
ReturnChecker Late-Specified void return patch
Patch + tests
Created attachment 190225 [details]
ReturnChecker Late-Specified void return patch
Updated patch against HEAD.
Comment on attachment 190225 [details]
ReturnChecker Late-Specified void return patch
Alena, does this patch look good to you?
Fixed in HEAD. *** cdt cvs genie on behalf of mlaperle *** Bug 337677 - Warning about "void" in late-specified return type [*] ReturnCheckerTest.java 1.7 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.6&r2=1.7 [*] ReturnChecker.java 1.19 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.18&r2=1.19 |
When a "void" return type is specified using the C++0x late-specified return type, CDT gives a warning: auto f() -> void // WARNING: No return, in function returning non-void { } Since this code is equivalent to void f() { } there should be no warning.