c++: locations: remove useless "inline".

* data/location.cc: "inline" is implicit when defining
methods in the class definition.
This commit is contained in:
Akim Demaille
2012-03-30 16:45:47 +02:00
parent 769a8ef9bc
commit 2a1bd0d7fe

View File

@@ -50,7 +50,7 @@ b4_copyright([Positions for Bison parsers in C++],
])[ ])[
/// Initialization. /// Initialization.
inline void initialize (]b4_percent_define_get([[filename_type]])[* fn = YY_NULL) void initialize (]b4_percent_define_get([[filename_type]])[* fn = YY_NULL)
{ {
filename = fn; filename = fn;
line = ]b4_location_initial_line[; line = ]b4_location_initial_line[;
@@ -61,14 +61,14 @@ b4_copyright([Positions for Bison parsers in C++],
** \{ */ ** \{ */
public: public:
/// (line related) Advance to the COUNT next lines. /// (line related) Advance to the COUNT next lines.
inline void lines (int count = 1) void lines (int count = 1)
{ {
column = ]b4_location_initial_column[; column = ]b4_location_initial_column[;
line += count; line += count;
} }
/// (column related) Advance to the COUNT next columns. /// (column related) Advance to the COUNT next columns.
inline void columns (int count = 1) void columns (int count = 1)
{ {
column = std::max (]b4_location_initial_column[u, column + count); column = std::max (]b4_location_initial_column[u, column + count);
} }
@@ -176,7 +176,7 @@ b4_copyright([Locations for Bison parsers in C++],
])[ ])[
/// Initialization. /// Initialization.
inline void initialize (]b4_percent_define_get([[filename_type]])[* fn = YY_NULL) void initialize (]b4_percent_define_get([[filename_type]])[* fn = YY_NULL)
{ {
begin.initialize (fn); begin.initialize (fn);
end = begin; end = begin;
@@ -186,19 +186,19 @@ b4_copyright([Locations for Bison parsers in C++],
** \{ */ ** \{ */
public: public:
/// Reset initial location to final location. /// Reset initial location to final location.
inline void step () void step ()
{ {
begin = end; begin = end;
} }
/// Extend the current location to the COUNT next columns. /// Extend the current location to the COUNT next columns.
inline void columns (unsigned int count = 1) void columns (unsigned int count = 1)
{ {
end += count; end += count;
} }
/// Extend the current location to the COUNT next lines. /// Extend the current location to the COUNT next lines.
inline void lines (unsigned int count = 1) void lines (unsigned int count = 1)
{ {
end.lines (count); end.lines (count);
} }