diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2022-03-01 13:00:02 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2022-03-01 13:00:02 +0100 |
| commit | 1f619e6ca06931fbe3c991f0649d20e9852224e8 (patch) | |
| tree | 2c8866cc04844b64e0fd82cd88b204e1d1bb8041 | |
| parent | 0f367adeafbd0b74030495f28e8a341cfd1264e0 (diff) | |
Add clang-format
| -rw-r--r-- | .clang-format | 38 | ||||
| -rw-r--r-- | CMakeLists.txt | 4 |
2 files changed, 40 insertions, 2 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..386c0ac --- /dev/null +++ b/.clang-format @@ -0,0 +1,38 @@ +AccessModifierOffset: 0 +AlignAfterOpenBracket: DontAlign +AlignConsecutiveAssignments: false +AlignConsecutiveDeclarations: false +AlignEscapedNewlines: Left +AlignOperands: true +AlignTrailingComments: false +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortBlocksOnASingleLine: true +AllowShortCaseLabelsOnASingleLine: false +AllowShortFunctionsOnASingleLine: All +AllowShortIfStatementsOnASingleLine: true +AllowShortLoopsOnASingleLine: true +BraceWrapping: + AfterClass: true + AfterControlStatement: false + AfterEnum: false + AfterFunction: true + AfterNamespace: false + AfterObjCDeclaration: false + AfterStruct: true + AfterUnion: false + BeforeCatch: false + BeforeElse: false + IndentBraces: false + SplitEmptyFunction: false + SplitEmptyNamespace: true + SplitEmptyRecord: true +ColumnLimit: 120 +ConstructorInitializerIndentWidth: 4 +ContinuationIndentWidth: 4 +IndentWidth: 4 +Language: Cpp +MaxEmptyLinesToKeep: 2 +SortIncludes: true +Standard: c++20 +TabWidth: 4 +UseTab: Never diff --git a/CMakeLists.txt b/CMakeLists.txt index 1255615..8720727 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,9 +22,10 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake" CACHE STRING "Vcpkg toolchain file") + find_package(imgui CONFIG REQUIRED) -find_package(Vulkan REQUIRED) find_package(nlohmann_json CONFIG REQUIRED) +find_package(Vulkan REQUIRED) if(UNIX AND NOT APPLE) find_package(X11 REQUIRED) @@ -36,7 +37,6 @@ if (CMAKE_CXX_CPPCHECK) list( APPEND CMAKE_CXX_CPPCHECK - "-j 16" "--project=${CMAKE_BINARY_DIR}/compile_commands.json" "--cppcheck-build-dir=${CMAKE_BINARY_DIR}/cppcheck" "--enable=all" |
