This repository was archived by the owner on Mar 20, 2023. It is now read-only.
Commit 6215225
authored
Configure sanitizers in CMake, fix issues (#823)
* Use sanitizer helpers from hpc-coding-conventions.
* Integrate sanitizer-specific configuration into CMake
configuration so less external magic is needed.
* Add ASan and UBSan jobs to the GitHub Actions CI.
LSan is not currently enabled because of MPI.
* Add problem matchers to GitHub Actions CI so that
compiler warnings and sanitizer issues are flagged.
* Drop two redundant macOS GitHub Actions CI jobs.
* Use ccache in GitHub Actions CI.
* Add UBSan exclusion file.
* Do not pass -undefined dynamic_lookup to vanilla Clang.
* Fix signed/unsigned comparison compiler warnings.
* Fix struct/class mismatch compiler warnings.
* stdindex2ptr: fix bugs when nrn_sav_rhs is too far away
from _data in memory.
* Fix __restrict__ violation in sprintf.1 parent 2375eb8 commit 6215225
File tree
32 files changed
+253
-108
lines changed- .github
- problem-matchers
- workflows
- .sanitizers
- CMake
- config
- coreneuron
- io
- mechanism
- network
- sim/scopmath
- utils/progressbar
- external
- extra
- tests
- integration
- unit
- alignment
- cmdline_interface
- interleave_info
- lfp
- queueing
32 files changed
+253
-108
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
| 33 | + | |
35 | 34 | | |
36 | 35 | | |
37 | | - | |
38 | | - | |
| 36 | + | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
44 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
45 | 57 | | |
46 | 58 | | |
47 | 59 | | |
| |||
50 | 62 | | |
51 | 63 | | |
52 | 64 | | |
53 | | - | |
| 65 | + | |
| 66 | + | |
54 | 67 | | |
55 | 68 | | |
56 | 69 | | |
57 | 70 | | |
58 | 71 | | |
59 | | - | |
| 72 | + | |
| 73 | + | |
60 | 74 | | |
61 | 75 | | |
62 | 76 | | |
63 | 77 | | |
64 | 78 | | |
65 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
66 | 82 | | |
67 | | - | |
68 | | - | |
69 | 83 | | |
70 | 84 | | |
71 | 85 | | |
72 | 86 | | |
73 | 87 | | |
74 | 88 | | |
75 | | - | |
| 89 | + | |
76 | 90 | | |
77 | 91 | | |
78 | 92 | | |
| |||
89 | 103 | | |
90 | 104 | | |
91 | 105 | | |
| 106 | + | |
92 | 107 | | |
93 | 108 | | |
94 | 109 | | |
95 | 110 | | |
96 | 111 | | |
97 | 112 | | |
98 | 113 | | |
99 | | - | |
100 | | - | |
| 114 | + | |
| 115 | + | |
101 | 116 | | |
102 | 117 | | |
| 118 | + | |
103 | 119 | | |
104 | 120 | | |
105 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
106 | 149 | | |
107 | 150 | | |
108 | 151 | | |
109 | 152 | | |
110 | 153 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 154 | + | |
116 | 155 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
121 | 177 | | |
122 | 178 | | |
123 | 179 | | |
124 | 180 | | |
125 | 181 | | |
126 | | - | |
| 182 | + | |
127 | 183 | | |
128 | | - | |
129 | | - | |
130 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
131 | 198 | | |
132 | | - | |
133 | | - | |
134 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
135 | 206 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
142 | 216 | | |
143 | 217 | | |
144 | 218 | | |
| |||
151 | 225 | | |
152 | 226 | | |
153 | 227 | | |
154 | | - | |
| 228 | + | |
155 | 229 | | |
156 | 230 | | |
157 | | - | |
158 | | - | |
| 231 | + | |
159 | 232 | | |
160 | 233 | | |
161 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
| |||
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
85 | | - | |
| 91 | + | |
| 92 | + | |
86 | 93 | | |
87 | 94 | | |
88 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
Submodule hpc-coding-conventions updated 33 files
- .ci/check_cmake_format.sh+19
- .ci/check_code_formatting.sh+33
- .ci/check_python_flake8.sh+17
- .ci/check_python_format.sh+18
- .git-blame-ignore-revs+2
- .github/workflows/check_cmake_format.yml+17
- .github/workflows/check_code_formatting.yml+17
- .github/workflows/check_python_flake8.yml+17
- .github/workflows/check_python_format.yml+17
- .gitignore+4
- LICENSE.txt
- README.md+1-1
- cpp/CMakeLists.txt+56-151
- cpp/clang-tidy-7
- cpp/cmake/3rdparty.cmake+57-59
- cpp/cmake/FindCMakeFormat.cmake+11-15
- cpp/cmake/FindClangFormat.cmake+46-53
- cpp/cmake/FindClangTidy.cmake+31-36
- cpp/cmake/FindPreCommit.cmake+11-19
- cpp/cmake/bbp-clang-format.py+4-3
- cpp/cmake/bbp-clang-tidy.py+6-7
- cpp/cmake/bbp-cmake-format.py+6-3
- cpp/cmake/bbp-diff-filter.py+2-2
- cpp/cmake/bbp-setup-pre-commit-config.py
- cpp/cmake/bob.cmake+156-115
- cpp/cmake/build-time-copy.cmake+11-16
- cpp/cmake/cpplib.py+359-99
- cpp/cmake/runClangFormat.cmake+7-17
- cpp/cmake/sanitizers.cmake+205
- cpp/formatting/Makefile+23-7
- cpp/formatting/formatting.py+3-3
- dev/bump+148-58
- dev/repositories.yaml+13-10
0 commit comments