[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cdt-dev] Built-in Code Formatter
|
Very cool, Dave Inglis and I just tried it out and we like :).
Thanks!
Doug Schaefer
QNX Software Systems
Eclipse CDT Project Lead
http://cdtdoug.blogspot.com
> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On
> Behalf Of Leherbauer, Anton
> Sent: Friday, November 10, 2006 10:11 AM
> To: CDT General developers list.
> Subject: [cdt-dev] Built-in Code Formatter
>
> Hi,
>
> I have committed an initial version of a built-in C/C++ code formatter
> (bug 95274).
>
> Following predefined formatting profiles are available:
> - K&R
> - BSD/Allman
> - GNU
> - Whitesmiths
> (See also http://en.wikipedia.org/wiki/Indent_style)
>
> The output of the built-in formatter depends on the quality of the AST
> that can be obtained from the source code. Although, some heuristic is
> used to handle syntax errors and other parsing problems, the result may
> be other than expected. It may also happen, that the formatter runs into
> an unrecoverable problem and simply leaves the source code unmodified.
>
> With the tracing option "org.eclipse.cdt.core/debug/formatter=true"
> you can get more details in case of formatter problems.
> The trace output would be esp. helpful when attached to a bug report.
>
> Thanks,
> Toni
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev