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

Bug 347495

Summary: [qf] Create local variable quick fix produces invalid indentation
Product: [Tools] CDT Reporter: Sergey Prigogin <eclipse.sprigogin>
Component: cdt-editorAssignee: Project Inbox <cdt-editor-inbox>
Status: CLOSED DUPLICATE QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug, kosashi, malaperle, yevshif
Version: 8.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Sergey Prigogin CLA 2011-05-27 14:10:36 EDT
Set indentation size to 2. In the following code position the cursor on x and select Create local variable from the quick fix menu.

void test() {
  x = 1;
}

The result has invalid indentation:

void test() {
    int x;
  x = 1;
}

The preference for using tabs for indentation is also not respected.
Comment 1 Tomasz Wesolowski CLA 2011-06-14 18:33:29 EDT
duplicate of 333937
Comment 2 Marc-André Laperle CLA 2011-06-15 22:30:47 EDT

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