From: Matthias Maennich Date: Wed, 15 May 2019 17:34:04 +0000 (+0100) Subject: Add .clang-format approximation X-Git-Tag: upstream/1.7~100 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c84181f99649f56679f8cab36408b1ede44af6b;p=platform%2Fupstream%2Flibabigail.git Add .clang-format approximation Add .clang-format definitions that are an approximation of the current coding style. As I understand it, the current style is based on what GNU Emacs implements for C++. Hence these rules might not be entirely accurate, but a good-enough approximation to allow contributers to follow the coding style more easily. I expect modifications for specific cases and when clang-format itself evolves over time. As of now, this definition is most useful in partial code formatting, such as executed by `git clang-format` on staged files or clang-format.py as a means of integration into various editors. * .clang-format: New File. Signed-off-by: Matthias Maennich --- diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..e63b6514 --- /dev/null +++ b/.clang-format @@ -0,0 +1,10 @@ +--- +BasedOnStyle: GNU +AlwaysBreakAfterReturnType: All +BinPackParameters: false +BreakStringLiterals: false +PointerAlignment: Left +SpaceBeforeParens: ControlStatements +TabWidth: 8 +UseTab: Always +---