GitHub user alanconway opened a pull request: https://github.com/apache/qpid-proton/pull/169
Clang format Format command: clang-format -i $(git ls-files -- *.cpp *.hpp *.c *.h) Style file is /.clang-format, with the following contents: Language: Cpp # also applies to C BasedOnStyle: LLVM IndentWidth: 4 AllowShortIfStatementsOnASingleLine: true AllowShortLoopsOnASingleLine: true You can merge this pull request into a Git repository by running: $ git pull https://github.com/alanconway/qpid-proton clang-format Alternatively you can review and apply these changes as the patch at: https://github.com/apache/qpid-proton/pull/169.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #169 ---- commit 5f82739467ed4a936f4755b123f7a4108e273a91 Author: Alan Conway <aconway@...> Date: 2018-11-27T21:08:40Z WIP: Support for automating clang-format /.clang-format - style file for C and C++ /scripts/git-clang-format - reformat git changes only commit 358a30144fa5124619fb1670ebe2587456e4fb0b Author: Alan Conway <aconway@...> Date: 2018-11-27T21:10:56Z WIP: reformat all c/c++ sources using clang-format. Format command: clang-format -i $(git ls-files -- *.cpp *.hpp *.c *.h) Style file is /.clang-format, with the following contents: Language: Cpp # also applies to C BasedOnStyle: LLVM IndentWidth: 4 AllowShortIfStatementsOnASingleLine: true AllowShortLoopsOnASingleLine: true ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org