]> git.saurik.com Git - bison.git/commitdiff
c++: fix generated doxygen comments
authorAkim Demaille <akim@lrde.epita.fr>
Tue, 22 Oct 2013 14:30:12 +0000 (16:30 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 22 Oct 2013 14:31:57 +0000 (16:31 +0200)
* configure.ac: Enable -Wdocumentation if supported.
* data/lalr1.cc: Fix comments.

configure.ac
data/lalr1.cc

index 2843b671ffc7bfaf4ee8418971cbbda893372375..74d8fced259e9efdc24a3ab169aba2215c171bd9 100644 (file)
@@ -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'
index 3294f591106d6cbe53c80c32241e1632990861b9..a3784637c3bcbd4a97e830d8a4c226927962d9a0 100644 (file)
@@ -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[