-
Notifications
You must be signed in to change notification settings - Fork 2
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
0 parents
commit 086aea3
Showing
43 changed files
with
2,477 additions
and
0 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,6 @@ | ||
--- | ||
Language: Cpp | ||
BasedOnStyle: Chromium | ||
AccessModifierOffset: -2 | ||
SortIncludes: 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,60 @@ | ||
--- | ||
Checks: "*, | ||
-abseil-*, | ||
-altera-*, | ||
-android-*, | ||
-fuchsia-*, | ||
-google-*, | ||
-llvm*, | ||
-modernize-use-trailing-return-type, | ||
-zircon-*, | ||
-readability-else-after-return, | ||
-readability-static-accessed-through-instance, | ||
-readability-avoid-const-params-in-decls, | ||
-cppcoreguidelines-non-private-member-variables-in-classes, | ||
-misc-non-private-member-variables-in-classes, | ||
-misc-include-cleaner, | ||
-hicpp-uppercase-literal-suffix, | ||
-readability-uppercase-literal-suffix, | ||
-cppcoreguidelines-avoid-magic-numbers, | ||
-readability-magic-numbers, | ||
-readability-identifier-length, | ||
-clang-diagnostic-implicit-int-float-conversion, | ||
-bugprone-narrowing-conversions, | ||
-cppcoreguidelines-narrowing-conversions, | ||
readability-identifier-naming, | ||
-hicpp-named-parameter, | ||
-readability-named-parameter, | ||
" | ||
WarningsAsErrors: '' | ||
HeaderFilterRegex: '' | ||
FormatStyle: none | ||
|
||
CheckOptions: | ||
- key: readability-identifier-length.IgnoredVariableNames | ||
value: 'x|y|z' | ||
- key: readability-identifier-length.IgnoredParameterNames | ||
value: 'x|y|z' | ||
- key: readability-identifier-naming.NamespaceCase | ||
value: 'lower_case' | ||
- key: readability-identifier-naming.ClassCase | ||
value: 'CamelCase' | ||
- key: readability-identifier-naming.StructCase | ||
value: 'CamelCase' | ||
- key: readability-identifier-naming.FunctionCase | ||
value: 'camelBack' | ||
- key: readability-identifier-naming.VariableCase | ||
value: 'camelBack' | ||
- key: readability-identifier-naming.GlobalConstantCase | ||
value: 'UPPER_CASE' | ||
- key: readability-identifier-naming.EnumCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.EnumConstantCase | ||
value: UPPER_CASE | ||
- key: readability-identifier-naming.ConstexprVariableCase | ||
value: UPPER_CASE | ||
- key: readability-identifier-naming.PrivateMemberSuffix | ||
value: '_' | ||
- key: readability-identifier-naming.ProtectedMemberSuffix | ||
value: '_' | ||
|
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,26 @@ | ||
# From: https://github.com/cpp-best-practices/cmake_template | ||
additional_commands: | ||
foo: | ||
flags: | ||
- BAR | ||
- BAZ | ||
kwargs: | ||
DEPENDS: '*' | ||
HEADERS: '*' | ||
SOURCES: '*' | ||
bullet_char: '*' | ||
dangle_parens: true | ||
enum_char: . | ||
line_ending: unix | ||
line_width: 120 | ||
max_pargs_hwrap: 3 | ||
separate_ctrl_name_with_space: false | ||
separate_fn_name_with_space: false | ||
tab_size: 2 | ||
autosort: true | ||
|
||
markup: | ||
enable_markup: false | ||
|
||
lint: | ||
disabled_codes: [C0307, W0105, C0111] |
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,31 @@ | ||
############################### | ||
# Git Line Endings # | ||
############################### | ||
* text=auto | ||
*.{cmd,[cC][mM][dD]} text eol=crlf | ||
*.{bat,[bB][aA][tT]} text eol=crlf | ||
*.{vcxproj,vcxproj.filters} text eol=crlf | ||
############################### | ||
# Git Large File System (LFS) # | ||
############################### | ||
# Archives | ||
*.7z filter=lfs diff=lfs merge=lfs -text | ||
*.br filter=lfs diff=lfs merge=lfs -text | ||
*.gz filter=lfs diff=lfs merge=lfs -text | ||
*.tar filter=lfs diff=lfs merge=lfs -text | ||
*.zip filter=lfs diff=lfs merge=lfs -text | ||
# Documents | ||
*.pdf filter=lfs diff=lfs merge=lfs -text | ||
# Images | ||
*.gif filter=lfs diff=lfs merge=lfs -text | ||
*.ico filter=lfs diff=lfs merge=lfs -text | ||
*.jpg filter=lfs diff=lfs merge=lfs -text | ||
*.pdf filter=lfs diff=lfs merge=lfs -text | ||
*.png filter=lfs diff=lfs merge=lfs -text | ||
*.psd filter=lfs diff=lfs merge=lfs -text | ||
*.webp filter=lfs diff=lfs merge=lfs -text | ||
# Fonts | ||
*.woff2 filter=lfs diff=lfs merge=lfs -text | ||
# Other | ||
*.exe filter=lfs diff=lfs merge=lfs -text | ||
*.wav filter=lfs diff=lfs merge=lfs -text |
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,51 @@ | ||
name: CMake | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [macos-14, windows-latest] | ||
build_type: [Debug, Release] | ||
|
||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. | ||
# You can convert this to a matrix build if you need cross-platform coverage. | ||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: List Xcode installations | ||
if: matrix.os == 'macos-14' | ||
run: sudo ls -1 /Applications | grep "Xcode" | ||
- name: Select Xcode 16.0 | ||
if: matrix.os == 'macos-14' | ||
run: sudo xcode-select -s /Applications/Xcode_16.app/Contents/Developer | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Cache dependencies | ||
id: cache-libs | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{github.workspace}} | ||
key: libs | ||
|
||
- name: Configure CMake | ||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. | ||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type | ||
run: cmake -S . -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | ||
|
||
- name: Build | ||
# Build your program with the given configuration | ||
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.build_type }} | ||
|
||
- name: Test | ||
working-directory: ${{github.workspace}}/build | ||
# Execute tests defined by the CMake configuration. | ||
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail | ||
run: ctest -C ${{ matrix.build_type }} | ||
|
Oops, something went wrong.