From 960b81e3568a98ff5d7217927f4fc5644e913dfc Mon Sep 17 00:00:00 2001 From: James Zern Date: Sun, 27 Aug 2017 18:28:29 -0700 Subject: [PATCH] .clang-format: update to 4.0.1 based on Google style with the following differences: 3a4 > # Generated with clang-format 4.0.1 10c11 < AlignTrailingComments: true --- > AlignTrailingComments: false 15,16c16,17 < AllowShortIfStatementsOnASingleLine: true < AllowShortLoopsOnASingleLine: true --- > AllowShortIfStatementsOnASingleLine: false > AllowShortLoopsOnASingleLine: false 23c24 < BraceWrapping: --- > BraceWrapping: 37c38 < BreakBeforeTernaryOperators: true --- > BreakBeforeTernaryOperators: false 51c52 < IncludeCategories: --- > IncludeCategories: Change-Id: I692c52b9d8c8421a9fc3097705763423a1437800 --- .clang-format | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index fea9403..3054389 100644 --- a/.clang-format +++ b/.clang-format @@ -1,7 +1,7 @@ --- Language: Cpp # BasedOnStyle: Google -# Generated with clang-format 3.8.1 +# Generated with clang-format 4.0.1 AccessModifierOffset: -1 AlignAfterOpenBracket: Align AlignConsecutiveAssignments: false @@ -37,6 +37,8 @@ BreakBeforeBinaryOperators: None BreakBeforeBraces: Attach BreakBeforeTernaryOperators: false BreakConstructorInitializersBeforeComma: false +BreakAfterJavaFieldAnnotations: false +BreakStringLiterals: true ColumnLimit: 80 CommentPragmas: '^ IWYU pragma:' ConstructorInitializerAllOnOneLineOrOnePerLine: true @@ -54,9 +56,12 @@ IncludeCategories: Priority: 2 - Regex: '.*' Priority: 3 +IncludeIsMainRegex: '([-_](test|unittest))?$' IndentCaseLabels: true IndentWidth: 2 IndentWrappedFunctionNames: false +JavaScriptQuotes: Leave +JavaScriptWrapImports: true KeepEmptyLinesAtTheStartOfBlocks: false MacroBlockBegin: '' MacroBlockEnd: '' @@ -75,6 +80,7 @@ PointerAlignment: Left ReflowComments: true SortIncludes: true SpaceAfterCStyleCast: false +SpaceAfterTemplateKeyword: true SpaceBeforeAssignmentOperators: true SpaceBeforeParens: ControlStatements SpaceInEmptyParentheses: false