-
Notifications
You must be signed in to change notification settings - Fork 56
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
2,688 changed files
with
176,453 additions
and
353,442 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,114 @@ | ||
--- | ||
BasedOnStyle: WebKit | ||
Language: Cpp | ||
Standard: Cpp11 | ||
UseTab: Never | ||
TabWidth: 4 | ||
IndentWidth: 4 | ||
ContinuationIndentWidth: 4 | ||
ColumnLimit: 100 | ||
|
||
AccessModifierOffset: -4 | ||
ConstructorInitializerIndentWidth: 4 | ||
AlignAfterOpenBracket: Align | ||
AlignConsecutiveAssignments: true | ||
AlignConsecutiveDeclarations: false | ||
AlignEscapedNewlines: Right | ||
AlignOperands: true | ||
AlignTrailingComments: true | ||
|
||
AllowAllParametersOfDeclarationOnNextLine: false | ||
AllowShortBlocksOnASingleLine: true | ||
AllowShortCaseLabelsOnASingleLine: true | ||
AllowShortFunctionsOnASingleLine: InlineOnly | ||
AllowShortIfStatementsOnASingleLine: false | ||
AllowShortLoopsOnASingleLine: false | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: false | ||
AlwaysBreakTemplateDeclarations: true | ||
|
||
BinPackArguments: true | ||
BinPackParameters: true | ||
BreakBeforeBinaryOperators: None | ||
BreakBeforeTernaryOperators: true | ||
BreakConstructorInitializers: BeforeComma | ||
# BreakInheritanceList: BeforeComma | ||
BreakStringLiterals: true | ||
BreakBeforeBraces: Custom | ||
BraceWrapping: | ||
AfterClass: true | ||
AfterControlStatement: false | ||
AfterEnum: true | ||
AfterFunction: true | ||
AfterNamespace: true | ||
AfterStruct: true | ||
AfterUnion: true | ||
AfterExternBlock: true | ||
BeforeCatch: true | ||
BeforeElse: true | ||
IndentBraces: false | ||
SplitEmptyFunction: true | ||
SplitEmptyNamespace: true | ||
|
||
CompactNamespaces: true | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: false | ||
ConstructorInitializerIndentWidth: 4 | ||
Cpp11BracedListStyle: false | ||
DerivePointerAlignment: false | ||
DisableFormat: false | ||
ExperimentalAutoDetectBinPacking: false | ||
FixNamespaceComments: false | ||
ForEachMacros: [] | ||
|
||
IncludeBlocks: Regroup | ||
IncludeCategories: | ||
- Regex: '^"boomerang/' | ||
Priority: 3 | ||
- Regex: '^"boomerang' | ||
Priority: 2 | ||
- Regex: '^<Q.*>' | ||
Priority: 4 | ||
- Regex: '^<.*>' | ||
Priority: 5 | ||
- Regex: '.*' | ||
Priority: 1 | ||
|
||
IndentCaseLabels: false | ||
IndentPPDirectives: AfterHash | ||
IndentWrappedFunctionNames: false | ||
KeepEmptyLinesAtTheStartOfBlocks: false | ||
MaxEmptyLinesToKeep: 2 | ||
NamespaceIndentation: None | ||
|
||
# Penalties | ||
PenaltyBreakAssignment: 1000 | ||
PenaltyBreakBeforeFirstCallParameter: 20 | ||
PenaltyBreakComment: 300 | ||
PenaltyBreakFirstLessLess: 120 | ||
PenaltyBreakString: 1000 | ||
# PenaltyBreakTemplateDeclaration: 1000 | ||
PenaltyExcessCharacter: 1000000 | ||
PenaltyReturnTypeOnItsOwnLine: 60 | ||
|
||
PointerAlignment: Right | ||
|
||
ReflowComments: true | ||
SortIncludes: true | ||
SortUsingDeclarations: true | ||
|
||
SpaceAfterCStyleCast: false | ||
SpaceAfterTemplateKeyword: false | ||
SpaceBeforeAssignmentOperators: true | ||
# SpaceBeforeCpp11BracedList: false | ||
# SpaceBeforeCtorInitializerColon: true | ||
# SpaceBeforeInheritanceColon: true | ||
SpaceBeforeParens: ControlStatements | ||
# SpaceBeforeRangeBasedForLoopColon: true | ||
SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 1 | ||
SpacesInAngles: false | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInContainerLiterals: true | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
|
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 @@ | ||
comment: off |
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,21 @@ | ||
<!-- | ||
Fill in the placeholders below. Delete any headings and placeholders that you do not fill in. | ||
--> | ||
**OS:** [e.g. Ubuntu 18.04 LTS 64 bit] | ||
**Output of 'boomerang-cli --version'** [e.g. boomerang-cli v0.3.99-alpha-1701-g30f62610] | ||
|
||
<!-- Explanation of the issue --> | ||
|
||
**Steps to reproduce:** | ||
1. | ||
2. | ||
|
||
**Expected/desired behaviour** | ||
[...] | ||
|
||
**Actual behaviour** | ||
[...] | ||
|
||
**Additional comments** | ||
[...] | ||
|
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
boomerang.kdev4 | ||
build | ||
out | ||
tests/outputs/* | ||
*.user | ||
*.kdev4 | ||
*.i64 |
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,56 @@ | ||
os: linux | ||
dist: trusty | ||
sudo: required | ||
language: cpp | ||
|
||
cache: ccache | ||
addons: | ||
apt: | ||
update: false | ||
|
||
|
||
install: | ||
- docker run -d --name build-env -v $(pwd):/home/boomerang/boomerang/ -v /home/travis/.ccache/:/home/boomerang/.ccache ceeac/boomerang-build-$TARGET:latest tail -f /dev/null | ||
|
||
|
||
matrix: | ||
include: | ||
- env: | ||
- TARGET="source-check" | ||
before_script: | ||
script: | ||
- docker exec -t build-env bash -c "cd boomerang && ./scripts/run-clang-format.py -r src/ -e */machO/objc/*" | ||
- env: | ||
- TARGET="clang5-debug" BUILD_TYPE="Debug" UNIT_TESTS="ON" REGRESSION_TESTS="OFF" COVERAGE="OFF" SHARED_LIBS="OFF" | ||
- env: | ||
- TARGET="clang6-release" BUILD_TYPE="Release" UNIT_TESTS="ON" REGRESSION_TESTS="OFF" COVERAGE="OFF" SHARED_LIBS="ON" | ||
- env: | ||
- TARGET="gcc7-release" BUILD_TYPE="Release" UNIT_TESTS="ON" REGRESSION_TESTS="OFF" COVERAGE="OFF" SHARED_LIBS="OFF" | ||
- env: | ||
- TARGET="gcc8-regression" BUILD_TYPE="RelWithDebInfo" UNIT_TESTS="OFF" REGRESSION_TESTS="ON" COVERAGE="OFF" SHARED_LIBS="ON" | ||
script: | ||
- docker exec -t build-env bash -c "cd boomerang/build && make -j$(nproc) && make check" | ||
- env: | ||
- TARGET="gcc7-debug-cov" BUILD_TYPE="Debug" UNIT_TESTS="ON" REGRESSION_TESTS="OFF" COVERAGE="ON" SHARED_LIBS="ON" | ||
after_success: | ||
- echo "Building CodeCov reports" && docker exec -t build-env bash -c "cd boomerang/build && | ||
lcov --directory . --capture --output-file coverage.info && | ||
lcov -r coverage.info '*.l' '/usr/*' '*/tests/unit-tests/*' --output-file coverage.info && | ||
lcov --list coverage.info" | ||
- echo "Uploading CodeCov reports" && bash <(curl -s https://codecov.io/bash) -X gcov -X coveragepy -X xcode -F unittests -s "$(pwd)/build" || echo \"CodeCov coverage report generation failed!\" | ||
|
||
|
||
before_script: | ||
- docker exec -t build-env bash -c "cd boomerang && | ||
mkdir build && | ||
cd build && | ||
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBOOMERANG_BUILD_UNIT_TESTS=$UNIT_TESTS -DBOOMERANG_BUILD_REGRESSION_TESTS=$REGRESSION_TESTS -DBOOMERANG_ENABLE_COVERAGE=$COVERAGE -DBUILD_SHARED_LIBS=$SHARED_LIBS .." | ||
|
||
|
||
script: | ||
- docker exec -t build-env bash -c "cd boomerang/build && make -j$(nproc) && make test && make package" | ||
|
||
|
||
notifications: | ||
email: false | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.