-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
661 additions
and
14 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,41 @@ | ||
--- | ||
Checks: | ||
'-*, | ||
cert-*,-cert-err58-cpp, | ||
clang-diagnostic-*, | ||
clang-analyzer-*, | ||
hicpp-*,-hicpp-avoid-c-arrays,-hicpp-no-array-decay,hicpp-explicit-*,-hicpp-use-equals-default,-hicpp-signed-bitwise,-hicpp-special-member-functions,-hicpp-use-equals-delete, | ||
misc-*,-misc-non-private-member-variables-in-classes, | ||
modernize-*,modernize-use-*,modernize-avoid-c-arrays,-modernize-use-trailing-return-type, | ||
performance-*, | ||
portability-*, | ||
readablity-*, | ||
' | ||
WarningsAsErrors: 'clang-analyzer-*' | ||
HeaderFilterRegex: '.*\.hpp$' | ||
AnalyzeTemporaryDtors: false | ||
FormatStyle: file | ||
User: klein_cl | ||
CheckOptions: | ||
- key: google-readability-braces-around-statements.ShortStatementLines | ||
value: '1' | ||
- key: google-readability-function-size.StatementThreshold | ||
value: '800' | ||
- key: google-readability-namespace-comments.ShortNamespaceLines | ||
value: '10' | ||
- key: google-readability-namespace-comments.SpacesBeforeComments | ||
value: '2' | ||
- key: modernize-loop-convert.MaxCopySize | ||
value: '16' | ||
- key: modernize-loop-convert.MinConfidence | ||
value: reasonable | ||
- key: modernize-loop-convert.NamingStyle | ||
value: CamelCase | ||
- key: modernize-pass-by-value.IncludeStyle | ||
value: llvm | ||
- key: modernize-replace-auto-ptr.IncludeStyle | ||
value: llvm | ||
- key: modernize-use-nullptr.NullMacros | ||
value: 'NULL' | ||
... | ||
|
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,155 @@ | ||
_help_parse: Options affecting listfile parsing | ||
parse: | ||
_help_additional_commands: | ||
- Specify structure for custom cmake functions | ||
additional_commands: | ||
catch_discover_tests: | ||
pargs: | ||
nargs: '*' | ||
flags: [] | ||
kwargs: | ||
OUTPUT_DIR: 1 | ||
OUTPUT_PREFIX: 1 | ||
OUTPUT_SUFFIX: 1 | ||
REPORTER: 1 | ||
TEST_PREFIX: 1 | ||
conan_add_remote: | ||
pargs: | ||
nargs: '*' | ||
flags: [] | ||
kwargs: | ||
INDEX: 1 | ||
NAME: 1 | ||
URL: 1 | ||
conan_cmake_install: | ||
pargs: | ||
nargs: '*' | ||
flags: [] | ||
kwargs: | ||
BUILD: + | ||
INSTALL_FOLDER: 1 | ||
LOCKFILE: 1 | ||
LOCKFILE_NODE_ID: 1 | ||
LOCKFILE_OUT: 1 | ||
PATH_OR_REFERENCE: 1 | ||
REFERENCE: 1 | ||
REMOTE: 1 | ||
ENV: + | ||
ENV_BUILD: + | ||
ENV_HOST: + | ||
GENERATOR: + | ||
OPTIONS: + | ||
OPTIONS_BUILD: + | ||
OPTIONS_HOST: + | ||
PROFILE: + | ||
PROFILE_BUILD: + | ||
PROFILE_HOST: + | ||
SETTINGS: + | ||
SETTINGS_BUILD: + | ||
SETTINGS_HOST: + | ||
cpmaddpackage: | ||
pargs: | ||
nargs: '*' | ||
flags: [] | ||
spelling: CPMAddPackage | ||
kwargs: &id001 | ||
DOWNLOAD_COMMAND: 1 | ||
DOWNLOAD_NAME: 1 | ||
DOWNLOAD_NO_EXTRACT: 1 | ||
DOWNLOAD_ONLY: 1 | ||
FIND_PACKAGE_ARGUMENTS: 1 | ||
FORCE: 1 | ||
GITHUB_REPOSITORY: 1 | ||
GITLAB_REPOSITORY: 1 | ||
GIT_REPOSITORY: 1 | ||
GIT_SHALLOW: 1 | ||
GIT_TAG: 1 | ||
HTTP_PASSWORD: 1 | ||
HTTP_USERNAME: 1 | ||
NAME: 1 | ||
NO_CACHE: 1 | ||
SOURCE_DIR: 1 | ||
SVN_REPOSITORY: 1 | ||
SVN_REVISION: 1 | ||
URL: 1 | ||
URL_HASH: 1 | ||
URL_MD5: 1 | ||
VERSION: 1 | ||
OPTIONS: + | ||
cpmfindpackage: | ||
pargs: | ||
nargs: '*' | ||
flags: [] | ||
spelling: CPMFindPackage | ||
kwargs: *id001 | ||
cpmdeclarepackage: | ||
pargs: | ||
nargs: '*' | ||
flags: [] | ||
spelling: CPMDeclarePackage | ||
kwargs: *id001 | ||
packageproject: | ||
pargs: | ||
nargs: '*' | ||
flags: [] | ||
spelling: packageProject | ||
kwargs: | ||
BINARY_DIR: 1 | ||
COMPATIBILITY: 1 | ||
DISABLE_VERSION_SUFFIX: 1 | ||
EXPORT_HEADER: 1 | ||
INCLUDE_DESTINATION: 1 | ||
INCLUDE_DIR: 1 | ||
NAME: 1 | ||
NAMESPACE: 1 | ||
VERSION: 1 | ||
VERSION_HEADER: 1 | ||
DEPENDENCIES: + | ||
cpmusepackagelock: | ||
pargs: 1 | ||
spelling: CPMUsePackageLock | ||
cpmregisterpackage: | ||
pargs: 1 | ||
spelling: CPMRegisterPackage | ||
cpmgetpackageversion: | ||
pargs: 2 | ||
spelling: CPMGetPackageVersion | ||
_help_format: Options affecting formatting. | ||
format: | ||
_help_line_width: | ||
- How wide to allow formatted cmake files | ||
line_width: 120 | ||
_help_tab_size: | ||
- How many spaces to tab for indent | ||
tab_size: 2 | ||
_help_max_pargs_hwrap: | ||
- If a positional argument group contains more than this many | ||
- arguments, then force it to a vertical layout. | ||
max_pargs_hwrap: 3 | ||
_help_separate_ctrl_name_with_space: | ||
- If true, separate flow control names from their parentheses | ||
- with a space | ||
separate_ctrl_name_with_space: false | ||
_help_separate_fn_name_with_space: | ||
- If true, separate function names from parentheses with a | ||
- space | ||
separate_fn_name_with_space: false | ||
_help_dangle_parens: | ||
- If a statement is wrapped to more than one line, than dangle | ||
- the closing parenthesis on its own line. | ||
dangle_parens: false | ||
_help_line_ending: | ||
- What style line endings to use in the output. | ||
line_ending: unix | ||
_help_markup: Options affecting comment reflow and formatting. | ||
markup: | ||
_help_bullet_char: | ||
- What character to use for bulleted lists | ||
bullet_char: '*' | ||
_help_enum_char: | ||
- What character to use as punctuation after numerals in an | ||
- enumerated list | ||
enum_char: . | ||
_help_enable_markup: | ||
- enable comment markup parsing and reflow | ||
enable_markup: false |
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
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,46 @@ | ||
cmake_minimum_required(VERSION 3.16...3.21) | ||
|
||
project(escape VERSION 0.1.0 LANGUAGES CXX) | ||
|
||
# Add cmakelib | ||
# include(FetchContent) | ||
# FetchContent_Declare(cmakelib URL https://github.com/aminya/cmakelib/archive/refs/heads/main.zip) | ||
# FetchContent_MakeAvailable(cmakelib) | ||
# include(${cmakelib_SOURCE_DIR}/Index.cmake) | ||
include(../Index.cmake) | ||
|
||
add_library(escape INTERFACE) | ||
|
||
# Initialize cmakelib | ||
# uncomment the options to enable them | ||
cmakelib( | ||
ENABLE_CACHE | ||
# ENABLE_CONAN | ||
# WARNINGS_AS_ERRORS | ||
# ENABLE_CPPCHECK | ||
ENABLE_CLANG_TIDY | ||
# ENABLE_INCLUDE_WHAT_YOU_USE | ||
ENABLE_COVERAGE | ||
# ENABLE_PCH | ||
# ENABLE_DOXYGEN | ||
# ENABLE_IPO | ||
# ENABLE_USER_LINKER | ||
ENABLE_BUILD_WITH_TIME_TRACE | ||
# ENABLE_UNITY | ||
# ENABLE_SANITIZER_ADDRESS | ||
# ENABLE_SANITIZER_LEAK | ||
ENABLE_SANITIZER_UNDEFINED_BEHAVIOR | ||
# ENABLE_SANITIZER_THREAD | ||
# ENABLE_SANITIZER_MEMORY | ||
) | ||
|
||
# project_options is defined inside cmakelib | ||
target_compile_features(project_options INTERFACE cxx_std_17) | ||
target_link_libraries(escape INTERFACE project_options project_warnings) | ||
|
||
# add src, tests, etc here: | ||
add_executable(test_escape escape.cpp) | ||
target_link_libraries(test_escape PRIVATE escape) | ||
|
||
enable_testing() | ||
add_test(NAME test_escape COMMAND test_escape) |
Oops, something went wrong.