Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 167349 - CDT should use the Java code formater and rules
Summary: CDT should use the Java code formater and rules
Status: RESOLVED DUPLICATE of bug 95274
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 4.0   Edit
Hardware: All Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-10 12:11 EST by Luis A. Vega CLA
Modified: 2006-12-11 04:12 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***