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

Bug 167349

Summary: CDT should use the Java code formater and rules
Product: [Tools] CDT Reporter: Luis A. Vega <wackoae>
Component: cdt-coreAssignee: Project Inbox <cdt-core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3    
Version: 4.0   
Target Milestone: ---   
Hardware: All   
OS: Windows XP   
Whiteboard:

Description Luis A. Vega CLA 2006-12-10 12:11:38 EST
CDT should extend the Eclipse Java code formatter and use it as the native/default option.  The Java formatter is very mature and extreamly usefully. The code syntax is very similar, so extending the current source base to support C++ code shouldn't be that difficult.

Code formating is very important part in development and having good coding standards are a key part in maintenance. Not having a good formatter for CDT is a problem. Eclipse already has a good, mature and very configurable code formatter for Java, and should be extended for usage with C/C++ code.

BTW: Using GNU Indent is not an option. Some people swear by it, but "indent" is based on a very poor and very "unprofessional" looking coding standard, that is hard to fix with the limited options provided by the tool. If this options are not used right, you may end up with uncompilable code (that previously worked) and violating your project's coding standards.
Comment 1 Anton Leherbauer CLA 2006-12-11 04:12:29 EST
We are on the way. Community help wanted!

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