c++: comment and style changes

* data/c++.m4, data/lalr1.cc: More documentation.
Tidy.
* tests/c++.at (string_cast): Rename as...
(to_string): this C++11 name.
This commit is contained in:
Akim Demaille
2015-01-08 09:15:10 +01:00
parent 7cf84b13a0
commit 8a4ec3595b
3 changed files with 16 additions and 12 deletions

View File

@@ -209,6 +209,7 @@ m4_define([b4_public_types_declare],
const semantic_type& v]b4_locations_if([,
const location_type& l])[);
/// Destroy the symbol.
~basic_symbol ();
/// Destructive move, \a s is emptied into this.
@@ -244,16 +245,17 @@ m4_define([b4_public_types_declare],
void move (by_type& that);
/// The (internal) type number (corresponding to \a type).
/// -1 when this symbol is empty.
/// \a empty when empty.
symbol_number_type type_get () const;
/// The token.
token_type token () const;
/// The type number used to denote an empty symbol.
enum { empty = 0 };
/// The symbol type.
/// -1 when this symbol is empty.
/// \a empty when empty.
token_number_type type;
};