Repository navigation
Commit fe89cd1
committed
Test the simplecpp portability reports and the macro usage arg in the dump
The simplecpp update reports PORTABILITY_BACKSLASH and
PORTABILITY_NO_EOF_NEWLINE as portability messages and writes the
argument of an integer constant macro call to <macro-usage>, with no
test for either. portabilityReports checks both ids are reported with
portability enabled and nothing without it. dumpMacroUsageArg checks
arg= is written for INT64_C(5) and left out for other macros.
getcode() now calls reportSimplecppPortability() after removeComments(),
as CppCheck::checkInternal does, so the main file's portability
messages reach the test logger.1 parent d2987e8 commit fe89cd1
1 file changed
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| |||
391 | 392 | | |
392 | 393 | | |
393 | 394 | | |
| 395 | + | |
| 396 | + | |
394 | 397 | | |
395 | 398 | | |
396 | 399 | | |
| |||
3300 | 3303 | | |
3301 | 3304 | | |
3302 | 3305 | | |
| 3306 | + | |
| 3307 | + | |
| 3308 | + | |
| 3309 | + | |
| 3310 | + | |
| 3311 | + | |
| 3312 | + | |
| 3313 | + | |
| 3314 | + | |
| 3315 | + | |
| 3316 | + | |
| 3317 | + | |
| 3318 | + | |
| 3319 | + | |
| 3320 | + | |
| 3321 | + | |
| 3322 | + | |
| 3323 | + | |
| 3324 | + | |
| 3325 | + | |
| 3326 | + | |
| 3327 | + | |
| 3328 | + | |
| 3329 | + | |
| 3330 | + | |
| 3331 | + | |
| 3332 | + | |
| 3333 | + | |
| 3334 | + | |
| 3335 | + | |
| 3336 | + | |
| 3337 | + | |
| 3338 | + | |
3303 | 3339 | | |
3304 | 3340 | | |
3305 | 3341 | | |
0 commit comments