tools: add .clang-format

Configuration for clang-format and related utilities.

Examples:

    clang-format -style=file <file>
    git clang-format -style=file <commit>
    git diff -U0 HEAD^ | clang-format-diff.py -i -p1 -style=file
This commit is contained in:
Felipe Morales
2015-01-20 09:52:05 -03:00
parent d30464264a
commit 6425627c3f
3 changed files with 20 additions and 0 deletions

View File

@@ -177,6 +177,7 @@ static char *(features[]) = {
NULL
};
// clang-format off
static int included_patches[] = {
//591 NA
//590,
@@ -771,6 +772,7 @@ static int included_patches[] = {
1,
0
};
// clang-format on
/// Place to put a short description when adding a feature with a patch.
/// Keep it short, e.g.,: "relative numbers", "persistent undo".