forked from apple/darwin-xnu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,152 changed files
with
107,761 additions
and
59,764 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
# Format of this file is YAML | ||
# Minimum clang-format version required: clang-format version 3.6.0 | ||
# Detailed description of options available at http://clang.llvm.org/docs/ClangFormatStyleOptions.html | ||
|
||
AlignEscapedNewlinesLeft: true | ||
# Bad: | ||
# void foo() { | ||
# someFunction(); | ||
# someOtherFunction(); | ||
# } | ||
# Good: | ||
# void foo() { | ||
# someFunction(); | ||
# someOtherFunction(); | ||
# } | ||
|
||
AlignTrailingComments: true | ||
# align all comments to right based of // | ||
# == Avoid using // based comments altogether == | ||
|
||
AllowAllParametersOfDeclarationOnNextLine: true | ||
# allow funtion definition as | ||
# someFunction(foo, | ||
# bar, | ||
# baz); | ||
|
||
AlignConsecutiveAssignments: true | ||
# aligns consecutive assignments with '=' operator | ||
|
||
AllowShortBlocksOnASingleLine: true | ||
# single statement block can be merged on one line | ||
# e.g if (a) { return; } | ||
|
||
AllowShortCaseLabelsOnASingleLine: false | ||
# Single statement case statements should be on their own lines | ||
|
||
AllowShortFunctionsOnASingleLine: None | ||
# Bad: | ||
# int foo() { return 123; } | ||
|
||
AllowShortIfStatementsOnASingleLine: false | ||
# Bad: | ||
# if (someOtherVar) return; | ||
# Good: | ||
# if (someOtherVar) | ||
# return; | ||
|
||
AllowShortLoopsOnASingleLine: false | ||
# Bad: | ||
# while(i>0) i--; | ||
# Good: | ||
# while(i>0) { | ||
# i--; | ||
# } | ||
|
||
AlwaysBreakAfterDefinitionReturnType: true | ||
# Ensures return type is one its own line | ||
# e.g. unsigned int | ||
# function(char param) { } | ||
|
||
AlwaysBreakBeforeMultilineStrings: true | ||
# multine strings should begin on new line | ||
|
||
BinPackArguments: true | ||
BinPackParameters: false | ||
# functions arguments should all be on one line or have a single line for each param | ||
|
||
BreakBeforeBinaryOperators: None | ||
# break for new line after binary operator in case of length is over ColumnLimit | ||
# e.g. | ||
# int foo = bar + | ||
# baz; | ||
|
||
BreakBeforeBraces: Linux | ||
# Always attach braces to surrounding context except - | ||
# break before braces on function, namespace and class definitions | ||
|
||
ColumnLimit: 132 | ||
# every body has wide screen now. 132 seems to be reasonable limit now. | ||
|
||
IndentCaseLabels: false | ||
# case labels have same indentation as switch statement. | ||
|
||
IndentWidth: 4 | ||
# 4 spaces for indentation | ||
TabWidth: 4 | ||
# tabwidth is 4 spaces | ||
|
||
UseTab: ForIndentation | ||
# tab for indentation only. All alignment should happen with spaces | ||
# Simple rule to check. | ||
# No tabs allowed after first 'non-tab' character in a line | ||
|
||
IndentWrappedFunctionNames: false | ||
KeepEmptyLinesAtTheStartOfBlocks: false | ||
# remove excess empty lines at start of blocks. | ||
|
||
PointerAlignment: Middle | ||
|
||
SpaceAfterCStyleCast: false | ||
# No space after (cast). E.g | ||
# int blah = (int)((void *)foo + bar) | ||
|
||
SpaceBeforeAssignmentOperators: true | ||
# Assignment = should be seperated by spaces on both sides. | ||
|
||
SpaceBeforeParens: ControlStatements | ||
# for control statements a space is required before '{' | ||
# Bad: for(){ statement; } | ||
# Good: for() { statement; } | ||
|
||
SpaceInEmptyParentheses: false | ||
# No spaces required for empty () | ||
|
||
SpacesInCStyleCastParentheses: false | ||
# No spaces required for (unsigned int) type cast | ||
|
||
SpacesInParentheses: false | ||
|
||
SpacesInSquareBrackets: false | ||
# No spaces in [count] style invocations of [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Any level | ||
BUILD/ | ||
build/ | ||
.DS_Store | ||
|
||
# / | ||
/.remotebuild_credential | ||
/cscope.* | ||
/TAGS | ||
/tags | ||
|
||
# /libkern/c++/Tests/TestSerialization/test1/test1.xcodeproj/ | ||
/libkern/c++/Tests/TestSerialization/test1/test1.xcodeproj/xcuserdata | ||
|
||
# /libkern/c++/Tests/TestSerialization/test2/test2.xcodeproj/ | ||
/libkern/c++/Tests/TestSerialization/test2/test2.xcodeproj/xcuserdata | ||
|
||
# /libkern/kmod/libkmod.xcodeproj/ | ||
/libkern/kmod/libkmod.xcodeproj/xcuserdata | ||
|
||
# /libsyscall/Libsyscall.xcodeproj/ | ||
/libsyscall/Libsyscall.xcodeproj/xcuserdata | ||
/libsyscall/Libsyscall.xcodeproj/project.xcworkspace | ||
|
||
# /tools/lldbmacros/ | ||
/tools/lldbmacros/*.pyc | ||
|
||
# /tools/lldbmacros/core/ | ||
/tools/lldbmacros/core/*.pyc | ||
|
||
# /tools/lldbmacros/plugins/ | ||
/tools/lldbmacros/plugins/*.pyc | ||
|
||
# /tools/tests/perf_index/PerfIndex_COPS_Module/PerfIndex.xcodeproj/ | ||
/tools/tests/perf_index/PerfIndex_COPS_Module/PerfIndex.xcodeproj/xcuserdata | ||
|
||
# /tools/tests/testkext/testkext.xcodeproj/ | ||
/tools/tests/testkext/testkext.xcodeproj/xcuserdata | ||
|
||
# /tools/tests/unit_tests/cpu_monitor_tests_11646922_src/cpu_hog/cpu_hog.xcodeproj/ | ||
/tools/tests/unit_tests/cpu_monitor_tests_11646922_src/cpu_hog/cpu_hog.xcodeproj/xcuserdata | ||
|
||
# /tools/tests/unit_tests/monitor_stress_12901965_src/monitor_stress.xcodeproj/ | ||
/tools/tests/unit_tests/monitor_stress_12901965_src/monitor_stress.xcodeproj/xcuserdata | ||
|
||
# /tools/tests/unit_tests/monitor_stress_12901965_src/monitor_stress.xcodeproj/project.xcworkspace/ | ||
/tools/tests/unit_tests/monitor_stress_12901965_src/monitor_stress.xcodeproj/project.xcworkspace/xcuserdata | ||
|
||
# /tools/tests/zero-to-n | ||
/tools/tests/zero-to-n/zn* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.