Skip to content

Commit 31afc04

Browse files
committed
refs #12358 - CI-unixish.yml: added step which checks for AST and ValueFlow changes
1 parent 413c87e commit 31afc04

File tree

2 files changed

+16756
-0
lines changed

2 files changed

+16756
-0
lines changed

.github/workflows/CI-unixish.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,21 @@ jobs:
611611
# compile with verification and ast matchers
612612
make -j$(nproc) CXXOPTS="-g -O2 -w" CPPOPTS="-DCHECK_INTERNAL -DHAVE_BOOST" MATCHCOMPILER=yes VERIFY=1
613613
614+
- name: Self check (output)
615+
run: |
616+
wget https://github.com/danmar/simplecpp/archive/refs/tags/1.5.1.tar.gz
617+
tar xvf 1.5.1.tar.gz
618+
# TODO: should include --verbose but identifiers in output differ on each run
619+
./cppcheck -q --std=c++11 --template=selfcheck -D__GNUC__ --library=gnu --check-level=exhaustive --debug --debug-template simplecpp-1.5.1/simplecpp.cpp > selfcheck.res
620+
diff -u selfcheck.exp selfcheck.res
621+
622+
# upload in failure case only. being able to just download the file, makes it easier to update the files in case of bigger changes
623+
- uses: actions/upload-artifact@v4
624+
if: failure()
625+
with:
626+
name: Actual output
627+
path: ./selfcheck.res
628+
614629
- name: CMake
615630
run: |
616631
cmake -S . -B cmake.output -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DUSE_MATCHCOMPILER=Verify -DENABLE_CHECK_INTERNAL=On -DCPPCHK_GLIBCXX_DEBUG=Off -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_GLOBAL_AUTOGEN_TARGET=On -DDISABLE_DMAKE=On

0 commit comments

Comments
 (0)