forked from confluentinc/librdkafka
-
Notifications
You must be signed in to change notification settings - Fork 14
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
391 changed files
with
61,557 additions
and
55,936 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
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,53 @@ | ||
--- | ||
BasedOnStyle: LLVM | ||
AlignAfterOpenBracket: Align | ||
AlignConsecutiveMacros: 'true' | ||
AlignConsecutiveAssignments: 'true' | ||
AlignConsecutiveDeclarations: 'false' | ||
AlignEscapedNewlines: Right | ||
AlignOperands: 'true' | ||
AlignTrailingComments: 'true' | ||
AllowAllArgumentsOnNextLine: 'true' | ||
AllowAllConstructorInitializersOnNextLine: 'true' | ||
AllowAllParametersOfDeclarationOnNextLine: 'false' | ||
AllowShortBlocksOnASingleLine: 'false' | ||
AllowShortCaseLabelsOnASingleLine: 'false' | ||
AllowShortFunctionsOnASingleLine: None | ||
AllowShortIfStatementsOnASingleLine: Never | ||
AllowShortLoopsOnASingleLine: 'false' | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: 'true' | ||
BinPackArguments: 'true' | ||
BinPackParameters: 'false' | ||
BreakBeforeBraces: Custom | ||
BreakBeforeTernaryOperators: 'true' | ||
BreakConstructorInitializers: AfterColon | ||
BreakStringLiterals: 'true' | ||
ColumnLimit: '80' | ||
DerivePointerAlignment: 'false' | ||
SortIncludes: 'false' | ||
IncludeBlocks: Preserve | ||
IndentCaseLabels: 'false' | ||
IndentPPDirectives: None | ||
IndentWidth: '8' | ||
Language: Cpp | ||
MaxEmptyLinesToKeep: '3' | ||
PointerAlignment: Right | ||
ReflowComments: 'true' | ||
SpaceAfterCStyleCast: 'false' | ||
SpaceAfterLogicalNot: 'false' | ||
SpaceBeforeAssignmentOperators: 'true' | ||
SpaceBeforeCpp11BracedList: 'true' | ||
SpaceBeforeParens: ControlStatements | ||
SpaceBeforeRangeBasedForLoopColon: 'true' | ||
SpaceInEmptyParentheses: 'false' | ||
SpacesBeforeTrailingComments: '2' | ||
SpacesInAngles: 'false' | ||
SpacesInCStyleCastParentheses: 'false' | ||
SpacesInContainerLiterals: 'false' | ||
SpacesInParentheses: 'false' | ||
SpacesInSquareBrackets: 'false' | ||
TabWidth: '8' | ||
UseTab: Never | ||
|
||
... |
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,52 @@ | ||
--- | ||
BasedOnStyle: Google | ||
AlignConsecutiveMacros: 'true' | ||
AlignConsecutiveAssignments: 'true' | ||
AlignConsecutiveDeclarations: 'false' | ||
AlignEscapedNewlines: Right | ||
AlignOperands: 'true' | ||
AlignTrailingComments: 'true' | ||
AllowAllArgumentsOnNextLine: 'true' | ||
AllowAllConstructorInitializersOnNextLine: 'true' | ||
AllowAllParametersOfDeclarationOnNextLine: 'false' | ||
AllowShortBlocksOnASingleLine: 'false' | ||
AllowShortCaseLabelsOnASingleLine: 'false' | ||
AllowShortFunctionsOnASingleLine: None | ||
AllowShortIfStatementsOnASingleLine: Never | ||
AllowShortLoopsOnASingleLine: 'false' | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: 'true' | ||
BinPackArguments: 'true' | ||
BinPackParameters: 'false' | ||
BreakBeforeBraces: Custom | ||
BreakBeforeTernaryOperators: 'true' | ||
BreakConstructorInitializers: AfterColon | ||
BreakStringLiterals: 'true' | ||
ColumnLimit: '80' | ||
DerivePointerAlignment: 'false' | ||
SortIncludes: 'false' | ||
IncludeBlocks: Preserve | ||
IndentCaseLabels: 'false' | ||
IndentPPDirectives: None | ||
IndentWidth: '2' | ||
Language: Cpp | ||
MaxEmptyLinesToKeep: '3' | ||
PointerAlignment: Right | ||
ReflowComments: 'true' | ||
SpaceAfterCStyleCast: 'false' | ||
SpaceAfterLogicalNot: 'false' | ||
SpaceBeforeAssignmentOperators: 'true' | ||
SpaceBeforeCpp11BracedList: 'true' | ||
SpaceBeforeParens: ControlStatements | ||
SpaceBeforeRangeBasedForLoopColon: 'true' | ||
SpaceInEmptyParentheses: 'false' | ||
SpacesBeforeTrailingComments: '2' | ||
SpacesInAngles: 'false' | ||
SpacesInCStyleCastParentheses: 'false' | ||
SpacesInContainerLiterals: 'false' | ||
SpacesInParentheses: 'false' | ||
SpacesInSquareBrackets: 'false' | ||
TabWidth: '8' | ||
UseTab: Never | ||
|
||
... |
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,18 @@ | ||
# Files to not check/fix coding style for. | ||
# These files are imported from other sources and we want to maintain | ||
# them in the original form to make future updates easier. | ||
src/lz4.c | ||
src/lz4.h | ||
src/lz4frame.c | ||
src/lz4frame.h | ||
src/lz4hc.c | ||
src/lz4hc.h | ||
src/queue.h | ||
src/crc32c.c | ||
src/crc32c.h | ||
src/snappy.c | ||
src/snappy.h | ||
src/snappy_compat.h | ||
src/tinycthread.c | ||
src/tinycthread.h | ||
src/regexp.h |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: check | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
sudo apt install -y python3 python3-pip python3-setuptools libcurl4-openssl-dev libssl-dev libsasl2-dev | ||
python3 -m pip install -r tests/requirements.txt | ||
- run: | | ||
./configure --CFLAGS="-std=c99" --CXXFLAGS="-std=c++98" --install-deps --enable-devel --disable-lz4-ext --prefix="$PWD/dest" | ||
- run: | | ||
make -j | ||
make -C tests -j build | ||
- run: | | ||
examples/rdkafka_example -V || true | ||
examples/rdkafka_example -X builtin.features | ||
- run: | | ||
make -C tests run_local_quick | ||
style: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
sudo apt install -y python3 python3-pip python3-setuptools clang-format | ||
python3 -m pip install -r packaging/tools/requirements.txt | ||
- name: Style checker | ||
run: make style-check |
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 |
---|---|---|
|
@@ -31,4 +31,5 @@ cov-int | |
gdbrun*.gdb | ||
TAGS | ||
nbproject | ||
.vscode | ||
.vscode | ||
vcpkg_installed |
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.