Community
Participate
Working Groups
Using 8.1.0.201202161734 Example: struct Foo { public: float GetNum(int) {} }; Foo GetFoo() {} int main() { GetFoo().GetNum(0); } Select 'GetFoo().GetNum(0)', invoke Extract Local Variable. 'i' is suggested instead of 'num'. If I change the code to this: int a; GetFoo().GetNum(a); then 'num' is correctly suggested. Foo GetFoo(float) {} int main() { GetFoo(0); } 'foo' is also correctly suggested.
Created attachment 229989 [details] Minimal project to verify the problem Verified on eclipse-SDK-4.3M5a-win32-x86_64. Slightly modified code used to verify (attached, and included below): struct Foo { public: float GetNum(int) {return 0;} }; Foo GetFoo() {return Foo();} int main() { int a; GetFoo().GetNum(0); //Extract Local Variable suggests "i" GetFoo().GetNum(a); //Extract Local Variable suggests "num" GetFoo(); //Extract Local Variable suggests "foo" }