Skip to content

Commit

Permalink
Merge c359dee into 1015e08
Browse files Browse the repository at this point in the history
  • Loading branch information
Randl committed Jun 5, 2018
2 parents 1015e08 + c359dee commit ad735a2
Show file tree
Hide file tree
Showing 623 changed files with 28,339 additions and 24,232 deletions.
43 changes: 43 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlinesLeft: false
AlignEscapedNewlines: false
AlignOperands: true
AlignTrailingComments: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
BinPackArguments: true
BinPackParameters: true
BreakBeforeBraces: Attach
BreakBeforeTernaryOperators: false
BreakConstructorInitializers: BeforeComma
BreakStringLiterals: true
ColumnLimit: 120
ConstructorInitializerAllOnOneLineOrOnePerLine: false
Cpp11BracedListStyle: true
DerivePointerAlignment: true
IndentCaseLabels: false
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 2
NamespaceIndentation: None
PointerAlignment: Right
SortIncludes: true
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
Standard: Cpp11
TabWidth: 4
UseTab: ForIndentation
ForEachMacros: [ for_const, foreach, Q_FOREACH, BOOST_FOREACH ]
...
3 changes: 3 additions & 0 deletions .travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
set -x

cmake -G Ninja -DCMAKE_BUILD_TYPE=$BUILD_TYPE $EXTRA_CMAKE_FLAGS -DBUILD_TESTING=ON .. || exit 1
# grep returns number of items found. each change is enclosed into <replacement>
# tag in the xml. Thus if no changes needed, 0 will be returned
cmake --build . --target clang-format-ci -- -v | grep -c "<replacement " && exit 1
cmake --build . -- -v || exit 1
ASAN_OPTIONS=alloc_dealloc_mismatch=0 ctest . || exit 1
4 changes: 2 additions & 2 deletions .travis/os_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -x

if [ "$TRAVIS_OS_NAME" == "linux" ]; then
docker run --rm -v $PWD:/repo -v ~/.travis:/travis berkus/docker-cpp-ci /bin/sh -c "cd /repo/_build_; conan install .. --build missing; /repo/.travis/build.sh"
docker run --rm -v $PWD:/repo -v ~/.travis:/travis berkus/docker-cpp-ci /bin/sh -c "cd /repo/_build_; conan install .. --build missing; /repo/.travis/build.sh" || exit 1
fi

if [ "$TRAVIS_OS_NAME" == "osx" ]; then
Expand All @@ -12,5 +12,5 @@ if [ "$TRAVIS_OS_NAME" == "osx" ]; then
export CXX=clang++
export EXTRA_CMAKE_FLAGS=-DCMAKE_PREFIX_PATH='/usr/local/opt/qt5/;/usr/local/opt/openal-soft'
conan install -s compiler=apple-clang .. --build missing
../.travis/build.sh
../.travis/build.sh || exit 1
fi
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,6 @@ if (CCACHE)
endif()

add_subdirectory(Telegram)

# clang-format
include(modules/clang-cxx-dev-tools.cmake)
Loading

0 comments on commit ad735a2

Please sign in to comment.