Bug 546988 - C/C++ Formatter Settings
Summary: C/C++ Formatter Settings
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: Next   Edit
Hardware: PC Windows 10
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords: consistency, Documentation, polish
Depends on:
Blocks:
 
Reported: 2019-05-05 16:57 EDT by Ivan Bow CLA
Modified: 2020-09-04 15:22 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 Ivan Bow CLA 2019-05-05 16:57:16 EDT
In the C/C++ formatter, there are settings that are not working properly, and settings that need to be added in order to use Eclipse with my work.  The buggy settings are when function arguments is set to when necessary all but the first element, with column indentation.  This setting does not put every element on a new line when it gets wrapped.  Instead, I must use the "Force Split" option to get this to work properly.  The following is the part I need for my workplace code compliance:

Old:
a = 	var_1
	+ var_2
	+ var3;
b = var_1
	| var_2
	| var_3;
	
New:
a =	var_1 +
		var_2 +
		var_3;
b = 	var_1 |
		var_2 |
		var_3;
		
This style is required by my company for code formatting compliance and consistency.


-- Configuration Details --
Product: Eclipse IDE 4.11.0.20190314-1200 (org.eclipse.epp.package.cpp.product)Installed Features:
 org.eclipse.platform 4.11.0.v20190307-0500