| Summary: | Quick fix create local variable and others do not infer parameter types in method calls | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Marc-André Laperle <malaperle> | ||||
| Component: | cdt-codan | Assignee: | Marc-André Laperle <malaperle> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Elena Laskavaia <elaskavaia.cdt> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | cdtdoug | ||||
| Version: | 8.0 | ||||||
| Target Milestone: | 8.0 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 191654 [details]
Create Local Variable in method call, patch + test
Fixed in HEAD. *** cdt cvs genie on behalf of mlaperle *** Bug 339463 - Quick fix create local variable and others do not infer parameter types in method calls [*] CreateLocalVariableQuickFixTest.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/internal/checkers/ui/quickfix/CreateLocalVariableQuickFixTest.java?root=Tools_Project&r1=1.2&r2=1.3 [*] CxxAstUtils.java 1.15 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/CxxAstUtils.java?root=Tools_Project&r1=1.14&r2=1.15 |
Example: class Foo { void bar(char); }; void func() { Foo foo; foo.bar(aChar); } Using the quick fix on aChar infers the type int instead of char.