Files
impala/.clang-format
Peter Rozsa 80af98645b IMPALA-12469: Allow short if statements on a single line in clang-format
This change allows short if statements and blocks to be put on a single
line, clang-format will keep these constructions as-is.

Change-Id: I65d04f00187648fafab89c82cb01ffd9ea17c4bb
Reviewed-on: http://gerrit.cloudera.org:8080/20513
Reviewed-by: Daniel Becker <daniel.becker@cloudera.com>
Reviewed-by: Tamas Mate <tmater@apache.org>
Tested-by: Tamas Mate <tmater@apache.org>
2023-10-02 08:15:02 +00:00

43 lines
1.1 KiB
YAML

---
Language: Cpp
BasedOnStyle: Google
AlignAfterOpenBracket: DontAlign
AlignOperands: false
AlignTrailingComments: false
AllowShortFunctionsOnASingleLine: Inline
AlwaysBreakBeforeMultilineStrings: false
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeTernaryOperators: false
ColumnLimit: 90
ConstructorInitializerIndentWidth: 2
DerivePointerAlignment: false
IncludeCategories:
- Priority: 3
Regex: '^<.*/' # Like <boost/lexical_cast.hpp>
- Priority: 1
Regex: '^<.*\.' # Like <fcntl.h>
- Priority: 2
Regex: '^<' # Like <vector>
- Priority: 4
Regex: '^"' # Like "util/auth-util.h"
SpacesBeforeTrailingComments: 1
Standard: Cpp11
---
Language: Java
BasedOnStyle: Chromium
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: true
AllowShortBlocksOnASingleLine: true
AlwaysBreakBeforeMultilineStrings: true
BreakBeforeTernaryOperators: false
ColumnLimit: 90
ContinuationIndentWidth: 4
IndentWidth: 2
IndentWrappedFunctionNames: true
SortIncludes: true
---
Language: Proto
BasedOnStyle: Google
ColumnLimit: 90