mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
Compare commits
3 commits
f2fb869779
...
138fa90f54
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
138fa90f54 | ||
|
|
dff9f5efce | ||
|
|
3a8884a54a |
1 changed files with 33 additions and 0 deletions
33
.clang-format
Normal file
33
.clang-format
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
BasedOnStyle: LLVM
|
||||||
|
# TODO-clang-12: AlignConsecutiveMacros: AcrossEmptyLinesAndComments
|
||||||
|
AllowAllArgumentsOnNextLine: false
|
||||||
|
AllowAllConstructorInitializersOnNextLine: false
|
||||||
|
AllowAllParametersOfDeclarationOnNextLine: false
|
||||||
|
AllowShortBlocksOnASingleLine: Never
|
||||||
|
AllowShortFunctionsOnASingleLine: None
|
||||||
|
AllowShortIfStatementsOnASingleLine: false
|
||||||
|
AlwaysBreakAfterReturnType: All
|
||||||
|
BreakBeforeBraces: Linux
|
||||||
|
BreakStringLiterals: false
|
||||||
|
ContinuationIndentWidth: 8
|
||||||
|
Cpp11BracedListStyle: false
|
||||||
|
ForEachMacros:
|
||||||
|
- wl_array_for_each
|
||||||
|
- wl_client_for_each
|
||||||
|
- wl_list_for_each
|
||||||
|
- wl_list_for_each_reverse_safe
|
||||||
|
- wl_list_for_each_safe
|
||||||
|
- STAILQ_FOREACH
|
||||||
|
IndentWidth: 8
|
||||||
|
PenaltyBreakAssignment: 1000
|
||||||
|
PenaltyBreakBeforeFirstCallParameter: 1000
|
||||||
|
PointerAlignment: Right
|
||||||
|
# Reflow comments breaks some HTML tags in doc comments
|
||||||
|
ReflowComments: false
|
||||||
|
# Not sure about SpaceAfterCStyleCast, some files use it others don't
|
||||||
|
SpaceAfterCStyleCast: true
|
||||||
|
# TODO-clang-12: SortIncludes: Never
|
||||||
|
SpaceBeforeParens: ControlStatementsExceptForEachMacros
|
||||||
|
# TODO-clang-12: SpaceAroundPointerQualifiers: Before
|
||||||
|
TabWidth: 8
|
||||||
|
UseTab: ForContinuationAndIndentation
|
||||||
Loading…
Add table
Add a link
Reference in a new issue