[ https://issues.apache.org/jira/browse/LUCY-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018191#comment-13018191
]
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 <http://sourceforge.net/tracker/index.php?func=detail&aid=1514844&group_id=2319&atid=102319>).
* Since astyle isn't capable of enforcing line lengths, some lines are too long.
I think I'll try to work up a "run_astyle.pl" 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:
{noformat}
astyle --options=devel/conf/astylerc --suffix=none --mode=c --recursive "*.cfh"
{noformat}
The results aren't perfect yet, though.
> Auto-format C code using astyle
> -------------------------------
>
> Key: LUCY-141
> URL: https://issues.apache.org/jira/browse/LUCY-141
> 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,
0007-Break-after-operator-because-astyle-does-not-indent-.patch
>
>
> We should consider using the automatic code formatter astyle for
> our C code.
> Dev list thread: http://s.apache.org/INC
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|