[odamex-bug-reporter] [Bug 875] New: Cleanup source with Artistic Style

  • From: odamex-bugtracker@xxxxxxxxxx
  • To: odamex-bug-reporter@xxxxxxxxxxxxx
  • Date: Sun, 15 Jul 2012 17:09:49 +0000

http://odamex.net/bugs/show_bug.cgi?id=875

             Bug #: 875
           Summary: Cleanup source with Artistic Style
    Classification: Unclassified
           Product: Odamex
           Version: 0.6-dev
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Server & Client
        AssignedTo: odamex-bug-reporter@xxxxxxxxxxxxx
        ReportedBy: alexmax2742@xxxxxxxxx


Quoth the website: "Artistic Style is a source code indenter, formatter, and
beautifier for the C, C++, C# and Java programming languages."  Right now, our
source tree contains many different source formatting styles.  This program can
be used to clean things up.

Here is a config file that I came up with that mirrors our own code formatting
guidelines:

style=allman
indent=tab=4
indent-col1-comments
pad-header
unpad-paren
convert-tabs
align-pointer=type
align-reference=name
lineend=linux
suffix=none

We can keep these settings in a file called astylerc in the root of our source
tree.

However, this cleanup is not something we should do lightly.  If anyone has any
outstanding patches, they will be much more difficult to apply after the
cleanup.  There is also the small possibility that this cleanup might break
functioning code for some obscure reason, so we ought to heavily test the
result.

-- 
Configure bugmail: http://odamex.net/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Other related posts:

  • » [odamex-bug-reporter] [Bug 875] New: Cleanup source with Artistic Style - odamex-bugtracker