c++: improve the generated documentation

* data/lalr1.cc, data/location.cc: Improve documenting comments.
* tests/c++.at (Doxygen Documentation): Fix AT_BISON_OPTION_PUSHDEFS,
so that the generated yyerror is correct.
* tests/c++.at, tests/headers.at: Prefer %empty.
This commit is contained in:
Akim Demaille
2018-11-04 13:03:43 +01:00
parent cf1446dc9e
commit 86efe28222
4 changed files with 10 additions and 8 deletions

View File

@@ -679,14 +679,15 @@ m4_define([AT_CHECK_DOXYGEN],
[m4_fatal([invalid argument: $1])])
AT_SETUP([Doxygen $1 Documentation])
AT_BISON_OPTION_PUSHDEFS([%skeleton "lalr1.cc"])
AT_BISON_OPTION_PUSHDEFS([%skeleton "lalr1.cc" %locations])
AT_DATA([input.yy],
[[%skeleton "lalr1.cc"
[[%require "3.2"
%skeleton "lalr1.cc"
%locations
%defines
%debug
%%
exp: /* empty */;
exp: %empty;
%%
]AT_YYERROR_DEFINE[
]])

View File

@@ -41,7 +41,7 @@ AT_DATA_GRAMMAR([$1.y],
]AT_YYLEX_DECLARE_EXTERN[
%}
%%
dummy: /* empty */;
dummy: %empty;
%%
#include <$1.h>
])
@@ -81,7 +81,7 @@ AT_DATA_GRAMMAR([input.y],
]AT_YYLEX_DEFINE[
%}
%%
exp: /* empty */;
exp: %empty;
]])
AT_BISON_CHECK([--defines -o input.c input.y])