Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339463 - Quick fix create local variable and others do not infer parameter types in method calls
Summary: Quick fix create local variable and others do not infer parameter types in me...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-codan (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: Marc-André Laperle CLA
QA Contact: Elena Laskavaia CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-10 00:23 EST by Marc-André Laperle CLA
Modified: 2011-03-22 01:23 EDT (History)
1 user (show)

See Also:


Attachments
Create Local Variable in method call, patch + test (3.17 KB, patch)
2011-03-22 00:18 EDT, Marc-André Laperle CLA
malaperle: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc-André Laperle CLA 2011-03-10 00:23:26 EST
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.
Comment 1 Marc-André Laperle CLA 2011-03-22 00:18:23 EDT
Created attachment 191654 [details]
Create Local Variable in method call, patch + test
Comment 2 Marc-André Laperle CLA 2011-03-22 00:29:58 EDT
Fixed in HEAD.