Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317279 - Indent line fails when function returns pointer (ctrl+i)
Summary: Indent line fails when function returns pointer (ctrl+i)
Status: CLOSED DUPLICATE of bug 334805
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows Vista
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-18 05:10 EDT by Filip Gustafsson CLA
Modified: 2011-03-30 05:55 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Gustafsson CLA 2010-06-18 05:10:11 EDT
Build Identifier: M20100211-1343

When a functions returns a pointer the indent line is moving the braces to the right when pressing ctrl+i instead of indenting it correct.

Reproducible: Always

Steps to Reproduce:
1.Create a c project in CDT
2.Create a function that returns a pointer and with a brace on next line.
3.Press ctrl+i on the line with the brace.

int* method()
{ //press ctrl + i here

}

It works when it is not a pointer like this:
int method()
{ //press ctrl + i here

}
Comment 1 Anton Leherbauer CLA 2011-03-30 05:55:57 EDT

*** This bug has been marked as a duplicate of bug 334805 ***