lucy-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marvin Humphrey (JIRA)" <>
Subject [lucy-issues] [jira] [Commented] (LUCY-141) Auto-format C code using astyle
Date Mon, 11 Apr 2011 04:27:05 GMT


Marvin Humphrey commented on LUCY-141:

Known issues:

  * The QUOTE macro in Charmonizer baffles astyle.
  * 'extern "C" {' header guards cause an extra level of indenting. (See <>).
  * Since astyle isn't capable of enforcing line lengths, some lines are too long.

I think I'll try to work up a "" script that hacks around the
first two problems using placeholders.

It may also be possible to run .cfh Clownfish header files through astyle with
the following command:

astyle --options=devel/conf/astylerc --suffix=none --mode=c --recursive "*.cfh"

The results aren't perfect yet, though.

> Auto-format C code using astyle
> -------------------------------
>                 Key: LUCY-141
>                 URL:
>             Project: Lucy
>          Issue Type: Improvement
>            Reporter: Marvin Humphrey
>            Assignee: Marvin Humphrey
>            Priority: Minor
>             Fix For: 0.1-incubating
>         Attachments: 0003-Remove-trailing-whitespace-from-C-code.patch, 0004-Adapt-preprocessor-macros-for-pre-ANSI-style.patch,
0005-Attach-opening-brackets-for-functions-to-end-of-the-.patch, 0006-Break-function-body-opening-lines-when-they-exceed-7.patch,
> We should consider using the automatic code formatter astyle for 
> our C code.
> Dev list thread:

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message