mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
C++: make sure the generated header is self container
See the previous commit. * data/lalr1.cc: Be sure to define YY_NULLPTR. * tests/headers.at: Check the case that was failing.
This commit is contained in:
@@ -159,6 +159,7 @@ m4_define([b4_shared_declarations],
|
|||||||
]b4_variant_if([b4_variant_includes])[
|
]b4_variant_if([b4_variant_includes])[
|
||||||
|
|
||||||
]b4_attribute_define[
|
]b4_attribute_define[
|
||||||
|
]b4_null_define[
|
||||||
]b4_YYDEBUG_define[
|
]b4_YYDEBUG_define[
|
||||||
|
|
||||||
]b4_namespace_open[
|
]b4_namespace_open[
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ AT_TEST([%define api.pure %define api.push-pull both])
|
|||||||
|
|
||||||
AT_TEST([%language "c++"])
|
AT_TEST([%language "c++"])
|
||||||
AT_TEST([%locations %debug %language "c++"])
|
AT_TEST([%locations %debug %language "c++"])
|
||||||
# AT_TEST([%language "c++" %define api.value.type variant %define parse.assert])
|
AT_TEST([%language "c++" %define api.value.type variant %define parse.assert])
|
||||||
|
|
||||||
AT_TEST([%locations %language "c++" %glr-parser])
|
AT_TEST([%locations %language "c++" %glr-parser])
|
||||||
|
|
||||||
@@ -193,8 +193,8 @@ AT_SETUP([Several parsers])
|
|||||||
# AT_TEST([PREFIX], [DIRECTIVES])
|
# AT_TEST([PREFIX], [DIRECTIVES])
|
||||||
# -------------------------------
|
# -------------------------------
|
||||||
# Generate and compile to *.o. Make sure there is no (allowed) YY*
|
# Generate and compile to *.o. Make sure there is no (allowed) YY*
|
||||||
# nor yy* identifiers in the header. Check that headers can be
|
# nor yy* identifiers in the header after applying api.prefix. Check
|
||||||
# compiled by a C++ compiler.
|
# that headers can be compiled by a C++ compiler.
|
||||||
m4_pushdef([AT_TEST],
|
m4_pushdef([AT_TEST],
|
||||||
[AT_BISON_OPTION_PUSHDEFS([%define api.prefix {$1_} $2])
|
[AT_BISON_OPTION_PUSHDEFS([%define api.prefix {$1_} $2])
|
||||||
AT_DATA_GRAMMAR([$1.y],
|
AT_DATA_GRAMMAR([$1.y],
|
||||||
|
|||||||
Reference in New Issue
Block a user