Changes between Initial Version and Version 1 of Ticket #1453


Ignore:
Timestamp:
Dec 1, 2016, 10:58:51 AM (8 years ago)
Author:
Dimitar Misev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1453 – Description

    initial v1  
    2323}}}
    2424
    25 This bash script can be used to recursively reformat all C++ and Java files in the directory from which it is executed.
    26 {{{
    27 #!/bin/bash
    28 #
    29 # This script reformats the C++/Java code in the rasdaman repository with astyle.
    30 # Execute with no arguments from the top-level source directory.
    31 #
    32 
    33 reformat() {
    34 astyle \
    35   --suffix=none \
    36   --convert-tabs \
    37   --exclude=third_party \
    38   --options=none \
    39   --add-brackets \
    40   --convert-tabs \
    41   --close-templates \
    42   --pad-oper \
    43   --pad-header \
    44   --unpad-paren \
    45   --align-pointer=type \
    46   --align-reference=type \
    47   --indent-preproc-define \
    48   --indent=spaces=4 \
    49   --recursive \
    50   $@
    51 }
    52 
    53 reformat --style=allman --mode=c '*.cc *.hh *.h *.c *.cpp *.hpp *.sc'
    54 reformat --style=java --mode=java '*.java'
    55 }}}
     25The attached script can be used to recursively reformat all C++ and Java files in the directory from which it is executed, or a specific file.