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

Bug 362261

Summary: "Ending brace on the same line" option for Code Style
Product: [Tools] CDT Reporter: Kibeom Kim <kkb110+bugzilla>
Component: cdt-editorAssignee: Project Inbox <cdt-editor-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: enhancement    
Priority: P3 CC: cdtdoug, eclipse.sprigogin, yevshif
Version: 8.0Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Kibeom Kim CLA 2011-10-28 00:56:20 EDT
Build Identifier: 

It would be nice if it has "Ending brace at the same line" option.

example:

from

double f(int x){
    return x;
}

to

double f(int x){
    return x;}

inspired by python.

Reproducible: Always
Comment 1 Kibeom Kim CLA 2011-12-12 11:26:21 EST
putting

vector<reference_wrapper<vector<unsigned>>> _FOR_ECLIPSE_AUTO_FORMAT;

at the beginning of class or function makes it work, don't know why