Community
Participate
Working Groups
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.
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