glr2.cc: more checks

* data/skeletons/glr2.cc: Clarify use of magic numbers.
(glr_stack_item::getState): Check the returned state.
This commit is contained in:
Akim Demaille
2020-12-20 09:44:30 +01:00
parent fe0102d4d5
commit 611348e67b
2 changed files with 19 additions and 6 deletions

View File

@@ -487,6 +487,16 @@ useful. Here's one way to set ASAN up with GCC 10 on Mac Ports
$ make check-local TESTSUITEFLAGS='-j5 -k cex' ASAN_OPTIONS=detect_leaks=1
5. You might need a suppression file. See
https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer#suppressions.
With G++ on a Mac, you might need a suppression file (say
leak.suppression) that contains:
leak:std::clog
and pass the additional flags
`LSAN_OPTIONS=suppressions=$PWD/leak.suppressions,print_suppressions=0`
## make maintainer-check-valgrind
This target uses valgrind both to check bison, and the generated parsers.