Skip to content

Commit 6912548

Browse files
authored
Merge PR #125 from tudasc/devel
Release 1.8
2 parents a83c63b + 6d40367 commit 6912548

File tree

172 files changed

+2276
-1513
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+2276
-1513
lines changed

.clang-format

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@ Language: Cpp
22
# BasedOnStyle: Google
33
AccessModifierOffset: -1
44
AlignAfterOpenBracket: Align
5-
AlignConsecutiveAssignments: true
6-
AlignEscapedNewlinesLeft: true
5+
AlignConsecutiveAssignments: AcrossComments
6+
AlignConsecutiveMacros: AcrossComments
7+
AlignEscapedNewlines: Left
78
AlignOperands: true
89
AlignTrailingComments: true
910
AllowAllParametersOfDeclarationOnNextLine: true
10-
AllowShortBlocksOnASingleLine: false
11+
AllowShortBlocksOnASingleLine: Never
1112
AllowShortCaseLabelsOnASingleLine: false
1213
AllowShortIfStatementsOnASingleLine: false
1314
AllowShortLoopsOnASingleLine: false
14-
AllowShortFunctionsOnASingleLine: false
15-
AlwaysBreakAfterDefinitionReturnType: false
16-
AlwaysBreakTemplateDeclarations: true
15+
AllowShortFunctionsOnASingleLine: None
16+
AlwaysBreakAfterDefinitionReturnType: None
17+
AlwaysBreakTemplateDeclarations: Yes
1718
AlwaysBreakBeforeMultilineStrings: true
1819
BreakBeforeBinaryOperators: None
1920
BreakBeforeTernaryOperators: true
@@ -27,7 +28,6 @@ DerivePointerAlignment: false
2728
ExperimentalAutoDetectBinPacking: false
2829
IndentCaseLabels: true
2930
IndentWrappedFunctionNames: false
30-
IndentFunctionDeclarationAfterType: false
3131
MaxEmptyLinesToKeep: 1
3232
KeepEmptyLinesAtTheStartOfBlocks: false
3333
NamespaceIndentation: None
@@ -43,7 +43,7 @@ PenaltyReturnTypeOnItsOwnLine: 200
4343
PointerAlignment: Left
4444
SpacesBeforeTrailingComments: 2
4545
Cpp11BracedListStyle: true
46-
Standard: Cpp11
46+
Standard: c++17
4747
IndentWidth: 2
4848
TabWidth: 2
4949
UseTab: Never

.codespellrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[codespell]
2+
builtin = clear,rare,en-GB_to_en-US,names,informal,code
3+
check-filenames =
4+
check-hidden =
5+
skip = */.git,*/build*,*/.codespellrc,*/install,*/lulesh,wrap.py
6+
quiet-level = 2
7+
ignore-regex = ^#include <(?:stdio)\.h>$|DEPENDEES|\\endcode
8+
ignore-words-list = uint

.github/workflows/basic-ci.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
-a \( -name "*.c" -o -name "*.cpp" -o -name "*.h" \) \
2525
-not -path "*/lulesh/*" -not -path "*/CallSite.h" \
2626
-print0 \
27-
| xargs -0 clang-format-10 -i
27+
| xargs -0 clang-format-12 -i
2828
2929
- name: Format check
3030
run: |
@@ -37,9 +37,6 @@ jobs:
3737
steps:
3838
- uses: actions/checkout@v2
3939
- uses: codespell-project/actions-codespell@master
40-
with:
41-
path: demo lib test
42-
skip: ./.git,*.py,*/lulesh
4340

4441
lit-suite:
4542
runs-on: ubuntu-20.04
@@ -103,15 +100,15 @@ jobs:
103100

104101
- name: Prepare TypeART coverage
105102
if: matrix.preset.coverage
106-
run: cmake --build build --target lcov-clean
103+
run: cmake --build build --target typeart-lcov-clean
107104

108105
- name: Test TypeART lit-suite
109106
if: matrix.preset.skip_test == false
110-
run: cmake --build build --target lit-pass-test
107+
run: cmake --build build --target check-typeart
111108

112109
- name: Build coverage report
113110
if: matrix.preset.coverage
114-
run: cmake --build build --target lcov-html
111+
run: cmake --build build --target typeart-lcov-html
115112

116113
- name: Prepare coverage artifact
117114
if: matrix.preset.coverage

AUTHORS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This is the official list of TypeART authors for copyright purposes.
1+
# This is the official list of TypeART contributors.
22

33
# Names should be added to this file as one of
44
# Organization's name
@@ -10,6 +10,7 @@ TU Darmstadt, Darmstadt, Germany
1010
Jan-Patrick Lehr <Scientific Computing>
1111
Alexander Hück <Scientific Computing>
1212
Sebastian Kreutzer <Scientific Computing>
13+
Alexander Linne <Scientific Computing>
1314

1415
RWTH Aachen, Aachen, Germany
1516
Joachim Protze <IT Center>

CMakeLists.txt

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.20)
22

33
project(typeart
4-
VERSION 1.7
4+
VERSION 1.8
55
HOMEPAGE_URL https://github.com/tudasc/TypeART
66
DESCRIPTION "LLVM-based type and memory allocation tracking sanitizer"
77
)
@@ -13,8 +13,10 @@ else()
1313
set(TYPEART_IS_TOP_LEVEL false)
1414
endif()
1515

16-
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
17-
set(CMAKE_VERBOSE_MAKEFILE ON)
16+
if(TYPEART_IS_TOP_LEVEL)
17+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
18+
set(CMAKE_VERBOSE_MAKEFILE OFF)
19+
endif()
1820

1921
set(CMAKE_CXX_STANDARD 17)
2022
set(CMAKE_CXX_STANDARD_REQUIRED ON)
@@ -24,13 +26,12 @@ list(
2426
APPEND
2527
CMAKE_MODULE_PATH
2628
${CMAKE_CURRENT_SOURCE_DIR}/cmake
27-
${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules
2829
)
2930

30-
include(ToolchainOptions)
31+
include(typeartToolchainOptions)
3132

32-
add_format_target(
33-
format-sources "Formats project source files"
33+
typeart_add_format_target(
34+
typeart-format-sources "Formats project source files"
3435
TARGETS lib/passes/*.cpp
3536
lib/passes/*.h
3637
lib/runtime/*.cpp
@@ -53,13 +54,13 @@ write_basic_package_version_file(
5354
COMPATIBILITY SameMinorVersion
5455
)
5556

56-
set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_INCLUDEDIR})
57+
set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME})
5758
set(LIBRARY_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR})
5859
set(BINARY_INSTALL_DIR ${CMAKE_INSTALL_BINDIR})
5960
set(CMAKE_INSTALL_DIR ${TYPEART_INSTALL_CONFIGDIR})
6061

6162
configure_package_config_file(
62-
${PROJECT_SOURCE_DIR}/cmake/Config.cmake.in
63+
${PROJECT_SOURCE_DIR}/cmake/typeartConfig.cmake.in
6364
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
6465
INSTALL_DESTINATION ${TYPEART_INSTALL_CONFIGDIR}
6566
PATH_VARS INCLUDE_INSTALL_DIR
@@ -76,12 +77,14 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
7677
# export(PACKAGE ${PROJECT_NAME})
7778

7879
if(TYPEART_IS_TOP_LEVEL)
79-
enable_testing()
80-
add_subdirectory(test)
81-
endif()
80+
if(TYPEART_TEST_CONFIG)
81+
enable_testing()
82+
add_subdirectory(test)
83+
endif()
8284

83-
feature_summary(WHAT ENABLED_FEATURES PACKAGES_FOUND PACKAGES_NOT_FOUND
84-
DESCRIPTION "TypeART ${PROJECT_VERSION} package and feature info:"
85-
INCLUDE_QUIET_PACKAGES
86-
QUIET_ON_EMPTY
87-
)
85+
feature_summary(WHAT ENABLED_FEATURES PACKAGES_FOUND PACKAGES_NOT_FOUND
86+
DESCRIPTION "TypeART ${PROJECT_VERSION} package and feature info:"
87+
INCLUDE_QUIET_PACKAGES
88+
QUIET_ON_EMPTY
89+
)
90+
endif()

CMakePresets.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,39 +19,39 @@
1919
"name": "tsan",
2020
"hidden": true,
2121
"cacheVariables": {
22-
"ENABLE_ASAN": "OFF",
23-
"ENABLE_UBSAN": "OFF",
24-
"ENABLE_TSAN": "ON"
22+
"TYPEART_ASAN": "OFF",
23+
"TYPEART_UBSAN": "OFF",
24+
"TYPEART_TSAN": "ON"
2525
}
2626
},
2727
{
2828
"name": "san",
2929
"hidden": true,
3030
"cacheVariables": {
31-
"ENABLE_ASAN": "ON",
32-
"ENABLE_UBSAN": "ON",
33-
"ENABLE_TSAN": "OFF"
31+
"TYPEART_ASAN": "ON",
32+
"TYPEART_UBSAN": "ON",
33+
"TYPEART_TSAN": "OFF"
3434
}
3535
},
3636
{
3737
"name": "thread-unsafe",
3838
"hidden": true,
3939
"cacheVariables": {
40-
"DISABLE_THREAD_SAFETY": "ON"
40+
"TYPEART_DISABLE_THREAD_SAFETY": "ON"
4141
}
4242
},
4343
{
4444
"name": "safe-ptr",
4545
"hidden": true,
4646
"cacheVariables": {
47-
"ENABLE_SAFEPTR": "ON"
47+
"TYPEART_SAFEPTR": "ON"
4848
}
4949
},
5050
{
5151
"name": "coverage",
5252
"hidden": true,
5353
"cacheVariables": {
54-
"ENABLE_CODE_COVERAGE": "ON"
54+
"TYPEART_CODE_COVERAGE": "ON"
5555
}
5656
},
5757
{
@@ -65,8 +65,8 @@
6565
],
6666
"cacheVariables": {
6767
"CMAKE_BUILD_TYPE": "Debug",
68-
"TEST_CONFIG": "ON",
69-
"SOFTCOUNTERS": "ON"
68+
"TYPEART_TEST_CONFIG": "ON",
69+
"TYPEART_SOFTCOUNTERS": "ON"
7070
}
7171
},
7272
{
@@ -89,7 +89,7 @@
8989
"release"
9090
],
9191
"cacheVariables": {
92-
"SOFTCOUNTERS": "ON"
92+
"TYPEART_SOFTCOUNTERS": "ON"
9393
}
9494
},
9595
{
@@ -137,8 +137,8 @@
137137
"develop"
138138
],
139139
"cacheVariables": {
140-
"ENABLE_ASAN": "OFF",
141-
"ENABLE_UBSAN": "OFF"
140+
"TYPEART_ASAN": "OFF",
141+
"TYPEART_UBSAN": "OFF"
142142
}
143143
},
144144
{

0 commit comments

Comments
 (0)