testing the parser

This commit is contained in:
Niels 2015-02-10 20:52:39 +01:00
parent 3589837071
commit 963ec13b4a
3 changed files with 85 additions and 32 deletions

View file

@ -14,7 +14,7 @@ json_unit_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/test -Dprivate=public
# -i do not create #line information
# --no-generation-date suppress generation date output
src/json.hpp: src/json.hpp.re2c
$(AM_V_GEN)$(RE2C) -b -s -i --no-generation-date $< | $(SED) '1d' > $@
$(AM_V_GEN)$(RE2C) -b -s --no-generation-date $< | $(SED) '1d' > $@
cppcheck:
cppcheck --enable=all --inconclusive --std=c++11 src/json.hpp