Oliver Stöneberg
Oliver Stöneberg
Ideas: - add scheduled jobs with latest simplecpp source to Cppcheck CI The downside would be there it is disjointed from the PR and we would have to manually check....
Yes. I just wrote them down as I was thinking about it and during that it became obvious the second case is the only way to go.
Since any change will ultimately lead to a downstream PR at some point, we could create a downstream schedule which automatically generates/updates a PR when changes are detected. That would...
This is partially implicitly tested by #475 (i.e. it fails without these changes). The remaining would be to run the test suites with Unix and Windows paths and add explicit...
CC @glankk
``` #line 1 "../simplecpp/a.h" int g ; #line 3 "../simplecpp//a.cpp" int i ; ``` The input was `../simplecpp//a.cpp`.
``` $ gcc -DDEF_1 -UDEF_1 -DDEF_1 -save-temps input.cpp | cat a-input.ii # 0 "input.cpp" # 0 "" # 0 "" # 1 "/usr/include/stdc-predef.h" 1 3 4 # 0 "" 2...
Requires https://github.com/danmar/cppcheck/pull/7951 to be merged first.
```cpp /**/#/**/if/**/0/**/ #error "if" #endif #if 0 #error "endif" #/**/endif /**/#/**/define/**/DEF_1/**/ #ifndef DEF_1 #error "DEF_1" #endif /**/#/**/define/**/DEF_2/**/1/**/ #if !DEF_2 #error "DEF_2" #endif #define DEF_3 /**/#/**/if/**/!/**/defined/**/(/**/DEF_3/**/)/**/ #error "DEF_3" #endif /**/#/**/3/**/ /**/#/**/3/**/"test.c"/**/...
The cfg test failures are caused by missing configurations.