-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MASSIVE STYLE CHANGES and several environment updates
Environment Updates
- Loading branch information
Showing
260 changed files
with
5,724 additions
and
5,842 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,55 @@ | ||
--- | ||
|
||
Checks: '-*,cppcoreguidelines-avoid-goto,cppcoreguidelines-pro-type-const-cast, google-runtime-int, modernize-use-nullptr, readability-container-size-empty, readability-redundant-control-flow, readability-identifier-naming, readability-implicit-bool-conversion, google-explicit-constructor' | ||
|
||
CheckOptions: | ||
- key: readability-identifier-naming.NamespaceCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.ClassCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.StructCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.TypedefCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.TypeAliasCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.FunctionCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.ParameterCase | ||
value: lower_case | ||
- key: readability-identifier-naming.VariableCase | ||
value: lower_case | ||
- key: readability-identifier-naming.PrivateMemberCase | ||
value: lower_case | ||
- key: readability-identifier-naming.PrivateMemberSuffix | ||
value: '_' | ||
- key: readability-identifier-naming.GlobalConstantCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.GlobalConstantPrefix | ||
value: k | ||
- key: readability-identifier-naming.StaticConstantCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.StaticConstantPrefix | ||
value: k | ||
- key: readability-identifier-naming.ConstexprVariableCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.ConstexprVariablePrefix | ||
value: k | ||
- key: readability-identifier-naming.TypeTemplateParameterCase | ||
value: CamelCase | ||
- key: readability-simplify-boolean-expr.ChainedConditionalReturn | ||
value: '1' | ||
- key: readability-simplify-boolean-expr.ChainedConditionalAssignment | ||
value: '1' | ||
- key: readability-identifier-naming.TypeTemplateParameterIgnoredRegexp | ||
value: expr-type | ||
- key: readability-identifier-naming.StaticVariableCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.StaticVariablePrefix | ||
value: 's' | ||
- key: readability-identifier-naming.GlobalVariableCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.GlobalVariablePrefix | ||
value: 'g' | ||
- key: readability-identifier-naming.PublicMemberCase | ||
value: CamelCase |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
name: Checks | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
BuildWindows: | ||
runs-on: windows-latest | ||
name: Build Windows | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
build_type: [RelWithDebInfo] | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- name: Install clang | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
location: D:\ | ||
update: true | ||
install: >- | ||
mingw-w64-clang-x86_64-clang | ||
mingw-w64-clang-x86_64-ninja | ||
- name: Add msys to path | ||
run: | | ||
echo "D:\msys64\clang64\bin\" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 | ||
- name: Build | ||
uses: threeal/[email protected] | ||
with: | ||
source-dir: ${{ github.workspace }} | ||
build-dir: ${{ github.workspace }}/build | ||
generator: Ninja | ||
cxx-compiler: clang++ | ||
c-compiler: clang | ||
build-args: --target DummyEditor --parallel 16 --config ${{ matrix.build_type }} | ||
options: CMAKE_BUILD_TYPE=${{ matrix.build_type }} DE_FORCE_NO_PCH=ON | ||
BuildUbuntu: | ||
runs-on: ubuntu-latest | ||
name: Build Ubuntu | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
build_type: [RelWithDebInfo] | ||
c_compiler: [clang-19] | ||
cpp_compiler: [clang++-19] | ||
steps: | ||
- name: Install Packages | ||
run: | | ||
sudo apt update | ||
sudo apt install libwayland-dev libxkbcommon-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libgtk-3-dev ninja-build | ||
wget https://apt.llvm.org/llvm.sh | ||
chmod +x llvm.sh | ||
sudo ./llvm.sh 19 all | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- name: Build | ||
uses: threeal/[email protected] | ||
with: | ||
source-dir: ${{ github.workspace }} | ||
build-dir: ${{ github.workspace }}/build | ||
generator: Ninja | ||
cxx-compiler: ${{ matrix.cpp_compiler }} | ||
c-compiler: ${{ matrix.c_compiler }} | ||
build-args: --target DummyEditor --parallel 16 --config ${{ matrix.build_type }} | ||
options: CMAKE_BUILD_TYPE=${{ matrix.build_type }} DE_FORCE_NO_PCH=ON | ||
Linter: | ||
runs-on: ubuntu-latest | ||
name: Clang Tidy | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- name: Install Packages | ||
run: | | ||
sudo apt update | ||
sudo apt install libwayland-dev libxkbcommon-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libgtk-3-dev | ||
wget https://apt.llvm.org/llvm.sh | ||
chmod +x llvm.sh | ||
sudo ./llvm.sh 19 all | ||
- name: Configure Cmake | ||
uses: threeal/[email protected] | ||
with: | ||
source-dir: ${{ github.workspace }} | ||
build-dir: ${{ github.workspace }}/build | ||
generator: Unix Makefiles | ||
cxx-compiler: clang++-19 | ||
c-compiler: clang-19 | ||
options: CMAKE_BUILD_TYPE=RelWithDebInfo CMAKE_EXPORT_COMPILE_COMMANDS=ON DE_FORCE_NO_PCH=ON | ||
run-build: false | ||
- uses: cpp-linter/cpp-linter-action@v2 | ||
id: linter | ||
with: | ||
style: 'file' | ||
tidy-checks: '' | ||
verbosity: info | ||
version: 18 | ||
files-changed-only: false | ||
database: '${{ github.workspace }}/build' | ||
repo-root: '${{ github.workspace }}' | ||
ignore: 'build/**|Examples/**|Sandbox/**|DummyEngine/Platform/**|DummyEditor/Platform/**' | ||
step-summary: true | ||
- name: Check Linter Results | ||
if: steps.linter.outputs.checks-failed > 0 | ||
run: exit 1 |
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
if (EXISTS ${CMAKE_SOURCE_DIR}/Config.cmake) | ||
include(Config.cmake) | ||
endif() | ||
|
||
include(CMake/Options.cmake) | ||
include(CMake/Platform.cmake) | ||
include(CMake/Utils.cmake) | ||
include(CMake/Compiler.cmake) |
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,20 @@ | ||
macro(set_option option help value) | ||
option(${option} ${help} ${value}) | ||
if(${option}) | ||
message(STATUS "${option}: ON") | ||
else() | ||
message(STATUS "${option}: OFF") | ||
endif() | ||
endmacro() | ||
|
||
|
||
message(STATUS "---Confiring-Project-Options-----------------------------------------------------------------") | ||
set_option(DE_FORMAT_BEFORE_BUILD "Runs clang-format on DummyEngine and DummyEditor before build" OFF) | ||
set_option(DE_CLANG_TIDY_RUN_ON_COMPILATION "Run clang tidy during compilation" OFF) | ||
set_option(DE_CLANG_TIDY_WARNINGS_AS_ERRORS "Set clang warnings as errors" OFF) | ||
set_option(DE_FORCE_NO_PCH "Prevent PCH" OFF) | ||
set_option(DE_ENABLE_UBSAN "Enable UBSAN" OFF) | ||
set_option(DE_ENABLE_ASAN "Enable ASAN" OFF) | ||
set_option(DE_ENABLE_TSAN "Enable TSAN" OFF) | ||
set_option(DE_ENABLE_MSAN "Enable MSAN" OFF) | ||
message(STATUS "---Confired-Project-Options------------------------------------------------------------------") |
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.