Skip to content

Commit

Permalink
Merge pull request #42 from lamarrr/v1
Browse files Browse the repository at this point in the history
V1
  • Loading branch information
lamarrr authored Aug 13, 2022
2 parents 3f661b5 + 8f16b10 commit e904851
Show file tree
Hide file tree
Showing 158 changed files with 9,805 additions and 1,989 deletions.
158 changes: 1 addition & 157 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,157 +1 @@
---
Language: Cpp
# BasedOnStyle: Google
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: false
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortLambdasOnASingleLine: All
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: true
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<ext/.*\.h>'
Priority: 2
- Regex: '^<.*\.h>'
Priority: 1
- Regex: '^<.*'
Priority: 2
- Regex: '.*'
Priority: 3
IncludeIsMainRegex: '([-_](test|unittest))?$'
IndentCaseLabels: true
IndentPPDirectives: None
IndentWidth: 2
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Never
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Left
RawStringFormats:
- Language: Cpp
Delimiters:
- cc
- CC
- cpp
- Cpp
- CPP
- 'c++'
- 'C++'
CanonicalDelimiter: ''
BasedOnStyle: google
- Language: TextProto
Delimiters:
- pb
- PB
- proto
- PROTO
EnclosingFunctions:
- EqualsProto
- EquivToProto
- PARSE_PARTIAL_TEXT_PROTO
- PARSE_TEST_PROTO
- PARSE_TEXT_PROTO
- ParseTextOrDie
- ParseTextProtoOrDie
CanonicalDelimiter: ''
BasedOnStyle: google
ReflowComments: true
SortIncludes: true
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Auto
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 8
UseTab: Never
...

BasedOnStyle: Google
45 changes: 27 additions & 18 deletions .github/workflows/cpp17-clang-macos-10.15.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,39 @@ jobs:
strategy:
matrix:
build_mode: ["Release", "Debug"]
panic_backtrace: ["ON", "OFF"]
backtrace: ["ON", "OFF"]

steps:
- uses: actions/checkout@v2

- name: Configure Build Directory
run: mkdir build && brew install googletest && brew install abseil

- name: Initialize CMake
run: cd build && export CC=clang CXX=clang++ && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build_mode }} -DSTX_BUILD_TESTS=ON -DSTX_ENABLE_BACKTRACE=${{ matrix.backtrace }} -DSTX_ENABLE_PANIC_BACKTRACE=${{ matrix.panic_backtrace }} -DSTX_SANITIZE_TESTS=ON -DCMAKE_CXX_STANDARD=17

- name: Run Tests
run: cd build && make stx_span_tests stx_option_result_tests && ./span/stx_span_tests && ./option_result/stx_option_result_tests

run: mkdir build

#- name: Run Address-sanitized Tests
# run: cd build && make stx_tests_address_sanitized && ./stx_tests_address_sanitized
- name: Initialize CMake
run: cd build && export CC=clang CXX=clang++ && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build_mode }} -DSTX_BUILD_TESTS=ON

#- name: Run Leak-sanitized Tests
# run: cd build && make stx_tests_leak_sanitized && ./stx_tests_leak_sanitized
- name: Build Tests
run: cd build && make

#- name: Run Thread-sanitized Tests
# run: cd build && make stx_tests_thread_sanitized && ./stx_tests_thread_sanitized
- name: Run Tests 1
run: .\async\stx_async_tests

- name: Run Tests 2
run: .\backtrace\stx_backtrace_tests

#- name: Run Undefined-sanitized Tests
# run: cd build && make stx_tests_undefined_sanitized && ./stx_tests_undefined_sanitized
- name: Run Tests 3
run: .\option_result\stx_option_result_tests

- name: Run Tests 4
run: .\panic\stx_panic_tests

- name: Run Tests 5
run: .\scheduler\stx_scheduler_tests

- name: Run Tests 6
run: .\span\stx_span_tests

- name: Run Tests 7
run: .\string\stx_string_tests

- name: Run Tests 8
run: .\vec\stx_vec_tests
2 changes: 1 addition & 1 deletion .github/workflows/cpp17-clang9-ubuntu-18.04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: mkdir build

- name: Initialize CMake
run: cd build && export CC=clang-9 CXX=clang++-9 && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build_mode }} -DSTX_BUILD_TESTS=ON -DSTX_ENABLE_BACKTRACE=${{ matrix.backtrace }} -DSTX_ENABLE_PANIC_BACKTRACE=${{ matrix.panic_backtrace }} -DSTX_SANITIZE_TESTS=ON -DCMAKE_CXX_STANDARD=17
run: cd build && export CC=clang-9 CXX=clang++-9 && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build_mode }} -DSTX_BUILD_TESTS=ON -DSTX_ENABLE_BACKTRACE=${{ matrix.backtrace }} -DSTX_ENABLE_PANIC_BACKTRACE=${{ matrix.panic_backtrace }} -DSTX_SANITIZE_TESTS=ON

- name: Run Unsanitized Tests
run: cd build && make stx_span_tests stx_option_result_tests && ./span/stx_span_tests && ./option_result/option_result_tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cpp17-gcc9-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: mkdir build

- name: Initialize CMake
run: cd build && export CC=gcc-9 CXX=g++-9 && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build_mode }} -DSTX_BUILD_TESTS=ON -DSTX_ENABLE_BACKTRACE=${{ matrix.backtrace }} -DSTX_ENABLE_PANIC_BACKTRACE=${{ matrix.panic_backtrace }} -DSTX_SANITIZE_TESTS=ON -DCMAKE_CXX_STANDARD=17
run: cd build && export CC=gcc-9 CXX=g++-9 && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build_mode }} -DSTX_BUILD_TESTS=ON -DSTX_ENABLE_BACKTRACE=${{ matrix.backtrace }} -DSTX_ENABLE_PANIC_BACKTRACE=${{ matrix.panic_backtrace }} -DSTX_SANITIZE_TESTS=ON

- name: Run Unsanitized Tests
run: cd build && make run_tests
Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/cpp20-clang10-ubuntu-20.04.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
build
NOTES.md
/TODO.md
/third_party
9 changes: 0 additions & 9 deletions .gitmodules

This file was deleted.

Loading

0 comments on commit e904851

Please sign in to comment.