]> git.ipfire.org Git - thirdparty/openvpn.git/commit
dev-tools: Add reformat-all.sh for code style unification
authorDavid Sommerseth <davids@openvpn.net>
Wed, 14 Dec 2016 21:05:00 +0000 (22:05 +0100)
committerDavid Sommerseth <davids@openvpn.net>
Wed, 14 Dec 2016 21:27:28 +0000 (22:27 +0100)
commit2417d55c4945d491e528dd0e4cf24047da5ceae9
tree6b57f4ab123a6f242633aeaf6e76af31cbc76df5
parenta7acb6b48e31c5b83983f7eb9caf308adb7b76f1
dev-tools: Add reformat-all.sh for code style unification

This script will run all files related to the currently checked out
git branch through uncrustify using a standardized style configuration.

Due to a bug in uncrustify 0.64, it is needed to add a special treatment
to one of the files at the moment.  So this both pre- and post-patched
before/after uncrustify is run.  This is to simply to assure that all
file processing will happen consistently each time.

Also added doc/doxygen/doc_key_generation.h to an ignore list, as
it carries some specific Doxygen formatting we should be careful with.
This file is anyhow not so critical and can be managed manually.

The src/compat/compat-lz4.[ch] files are also not touched, as they
are based on upstream formatting.  This makes it easier to update
to a newer LZ4 version later on and even see what the differences
are.

v2 - Include updated config from CodeStyle wiki page
     Remove line lenght restriction for The Great Reformatting
     Update the script with improvements by krzee

v3 - Update with a fixed config from the CodeStyle wiki page
     Corrected a typo in the commit message (0.63->0.64)
     Minor changes to the reformat script (no pushd/popd,
     some new lines moved around, bash->sh)

Signed-off-by: David Sommerseth <davids@openvpn.net>
Acked-by: Steffan Karger <steffan@karger.me>
Message-Id: <1481749500-8795-1-git-send-email-davids@openvpn.net>
URL: http://www.mail-archive.com/search?l=mid&q=1481749500-8795-1-git-send-email-davids@openvpn.net
dev-tools/reformat-all.sh [new file with mode: 0755]
dev-tools/reformat-patches/after_include_openvpn-plugin.h.in.patch [new file with mode: 0644]
dev-tools/reformat-patches/before_include_openvpn-plugin.h.in.patch [new file with mode: 0644]
dev-tools/special-files.lst [new file with mode: 0644]
dev-tools/uncrustify.conf [new file with mode: 0644]