diff options
author | Akim Demaille <akim@lrde.epita.fr> | 2013-10-22 16:30:12 +0200 |
---|---|---|
committer | Akim Demaille <akim@lrde.epita.fr> | 2013-10-22 16:31:57 +0200 |
commit | a81071233128e8c31507b9aa6c5f70906ab523f5 (patch) | |
tree | 7a0b4380334be3cb5f794dfca9c898bbb7d67905 | |
parent | 1a9646fc9140f896500a812672742b82634c2249 (diff) | |
download | bison-a81071233128e8c31507b9aa6c5f70906ab523f5.tar.gz |
c++: fix generated doxygen comments
* configure.ac: Enable -Wdocumentation if supported.
* data/lalr1.cc: Fix comments.
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | data/lalr1.cc | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 2843b671..74d8fced 100644 --- a/configure.ac +++ b/configure.ac @@ -82,7 +82,7 @@ AC_ARG_ENABLE([gcc-warnings], esac], [enable_gcc_warnings=no]) if test "$enable_gcc_warnings" = yes; then - warn_common='-Wall -Wextra -Wno-sign-compare -Wcast-align + warn_common='-Wall-Wextra -Wno-sign-compare -Wcast-align -Wdocumentation -Wformat -Wpointer-arith -Wwrite-strings' warn_c='-Wbad-function-cast -Wshadow -Wstrict-prototypes' warn_cxx='-Wnoexcept' diff --git a/data/lalr1.cc b/data/lalr1.cc index 3294f591..a3784637 100644 --- a/data/lalr1.cc +++ b/data/lalr1.cc @@ -267,7 +267,7 @@ b4_location_define])])[ /// \brief Reclaim the memory associated to a symbol. /// \param yymsg Why this token is reclaimed. /// If null, print nothing. - /// \param s The symbol. + /// \param yysym The symbol. template <typename Base> void yy_destroy_ (const char* yymsg, basic_symbol<Base>& yysym) const; @@ -341,13 +341,13 @@ b4_location_define])])[ enum { yyeof_ = 0, - yylast_ = ]b4_last[, //< Last index in yytable_. - yynnts_ = ]b4_nterms_number[, //< Number of nonterminal symbols. + yylast_ = ]b4_last[, ///< Last index in yytable_. + yynnts_ = ]b4_nterms_number[, ///< Number of nonterminal symbols. yyempty_ = -2, - yyfinal_ = ]b4_final_state_number[, //< Termination state number. + yyfinal_ = ]b4_final_state_number[, ///< Termination state number. yyterror_ = 1, yyerrcode_ = 256, - yyntokens_ = ]b4_tokens_number[ //< Number of tokens. + yyntokens_ = ]b4_tokens_number[ ///< Number of tokens. }; ]b4_parse_param_vars[ |