Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 317279

Summary: Indent line fails when function returns pointer (ctrl+i)
Product: [Tools] CDT Reporter: Filip Gustafsson <filip.gustafsson>
Component: cdt-editorAssignee: Project Inbox <cdt-editor-inbox>
Status: CLOSED DUPLICATE QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: minor    
Priority: P3 CC: yevshif
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

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 ***