Commit b2edaaf
committed
Move cppcheck logic from Makefile and CMakeLists.txt to tools/check-cppcheck.sh
The legacy approach executed cppcheck for every build target, which
resulted in a huge number of re-checks of the sources if more than
one targets were built. The main reason behind that was to get the
right macro-guarded code paths analyzed. However, cppcheck can
analyze every configuration of the sources in one go.
(The patch also contains some aesthetic changes around the way
vera++ is called and how errors are reported.)
JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu1 parent be1920d commit b2edaaf
File tree
7 files changed
+49
-136
lines changed- build/static-checkers
- tools
- cppcheck
7 files changed
+49
-136
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 44 | | |
48 | 45 | | |
49 | 46 | | |
| |||
421 | 418 | | |
422 | 419 | | |
423 | 420 | | |
424 | | - | |
425 | | - | |
426 | 421 | | |
427 | 422 | | |
428 | 423 | | |
| |||
466 | 461 | | |
467 | 462 | | |
468 | 463 | | |
469 | | - | |
470 | | - | |
471 | 464 | | |
472 | 465 | | |
473 | 466 | | |
| |||
484 | 477 | | |
485 | 478 | | |
486 | 479 | | |
487 | | - | |
488 | 480 | | |
489 | 481 | | |
490 | 482 | | |
| |||
512 | 504 | | |
513 | 505 | | |
514 | 506 | | |
515 | | - | |
516 | | - | |
517 | 507 | | |
518 | | - | |
519 | 508 | | |
520 | 509 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
| 244 | + | |
273 | 245 | | |
274 | 246 | | |
275 | 247 | | |
| |||
348 | 320 | | |
349 | 321 | | |
350 | 322 | | |
351 | | - | |
352 | | - | |
| 323 | + | |
| 324 | + | |
353 | 325 | | |
354 | | - | |
355 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
356 | 329 | | |
357 | 330 | | |
358 | 331 | | |
| |||
380 | 353 | | |
381 | 354 | | |
382 | 355 | | |
383 | | - | |
| 356 | + | |
384 | 357 | | |
385 | 358 | | |
386 | 359 | | |
| |||
This file was deleted.
| 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 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
0 commit comments