From ef3a07abf25fb3bef689915850123f9f9e00aa51 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Mon, 7 Sep 2020 14:54:56 -0500 Subject: [PATCH] chore: initial commit --- .clang-format | 50 ++++++++++++++++++++++++++++++++++++++++++++ .editorconfig | 15 +++++++++++++ .gitignore | 6 ++++++ CMakeLists.txt | 36 +++++++++++++++++++++++++++++++ storm/CMakeLists.txt | 0 test/CMakeLists.txt | 0 6 files changed, 107 insertions(+) create mode 100644 .clang-format create mode 100644 .editorconfig create mode 100644 .gitignore create mode 100644 CMakeLists.txt create mode 100644 storm/CMakeLists.txt create mode 100644 test/CMakeLists.txt diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..8ceba92 --- /dev/null +++ b/.clang-format @@ -0,0 +1,50 @@ +--- +Language: Cpp +AlignConsecutiveAssignments: false +AlignConsecutiveDeclarations: false +AllowShortBlocksOnASingleLine: Never +AllowShortCaseLabelsOnASingleLine: false +AllowShortIfStatementsOnASingleLine: Never +AlwaysBreakTemplateDeclarations: Yes +BraceWrapping: + AfterCaseLabel: false + AfterClass: false + AfterControlStatement: Never + AfterEnum: false + AfterFunction: false + AfterStruct: false + AfterUnion: false + BeforeElse: false +BreakBeforeTernaryOperators: true +BreakConstructorInitializers: BeforeComma +ColumnLimit: 0 +ContinuationIndentWidth: 4 +DeriveLineEnding: false +DerivePointerAlignment: false +IncludeBlocks: Merge +IncludeCategories: + - Regex: '^"(llvm|llvm-c|clang|clang-c)/' + Priority: 2 + SortPriority: 2 + - Regex: '^(<|"(gtest|gmock|isl|json)/)' + Priority: 3 + - Regex: "<[[:alnum:].]+>" + Priority: 4 + - Regex: ".*" + Priority: 1 + SortPriority: 0 +IndentGotoLabels: false +IndentWidth: 4 +MaxEmptyLinesToKeep: 1 +PointerAlignment: Left +SortIncludes: true +SpaceBeforeCtorInitializerColon: true +SpaceBeforeInheritanceColon: true +SpaceBeforeParens: ControlStatements +SpaceInEmptyBlock: false +SpacesInAngles: false +SpacesInCStyleCastParentheses: false +SpacesInConditionalStatement: false +Standard: c++11 +UseCRLF: false +UseTab: Never diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..6b2850e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[storm/**/*] +indent_size = 4 +indent_style = space + +[test/**/*] +indent_size = 4 +indent_style = space diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5976665 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.DS_Store +.idea +.vscode + +/build +/dist diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..4ed16f4 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,36 @@ +cmake_minimum_required(VERSION 2.8) + +if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR}) + message(FATAL_ERROR + "In-source builds not allowed. + Please make a new directory (called a build directory) and run CMake from there. + You may need to remove CMakeCache.txt." + ) +endif() + +# Project +project(storm) + +set(CMAKE_CXX_STANDARD 11) + +# Arch defines +if(CMAKE_SIZEOF_VOID_P EQUAL 8) + set(ARCH_64 1) +elseif(CMAKE_SIZEOF_VOID_P EQUAL 4) + set(ARCH_32 1) +endif() + +# OS defines +if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") + set(PLATFORM_WIN 1) + add_definitions(-DPLATFORM_WIN) +elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") + set(PLATFORM_LINUX 1) + add_definitions(-DPLATFORM_LINUX) +elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + set(PLATFORM_MAC 1) + add_definitions(-DPLATFORM_MAC) +endif() + +add_subdirectory(storm) +add_subdirectory(test) diff --git a/storm/CMakeLists.txt b/storm/CMakeLists.txt new file mode 100644 index 0000000..e69de29 diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 0000000..e69de29