]> git.saurik.com Git - bison.git/commitdiff
c++: locations: remove useless "inline".
authorAkim Demaille <akim@lrde.epita.fr>
Fri, 30 Mar 2012 14:45:47 +0000 (16:45 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Sat, 31 Mar 2012 09:23:45 +0000 (11:23 +0200)
* data/location.cc: "inline" is implicit when defining
methods in the class definition.

data/location.cc

index f4fc9cc56bdd2191dd9732e4cfeb9617a249f2f7..30f0a02fb033cce7989d28f8af8cb4b28dcd73db 100644 (file)
@@ -50,7 +50,7 @@ b4_copyright([Positions for Bison parsers in C++],
 
 ])[
     /// 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;
       line = ]b4_location_initial_line[;
@@ -61,14 +61,14 @@ b4_copyright([Positions for Bison parsers in C++],
      ** \{ */
   public:
     /// (line related) Advance to the COUNT next lines.
-    inline void lines (int count = 1)
+    void lines (int count = 1)
     {
       column = ]b4_location_initial_column[;
       line += count;
     }
 
     /// (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);
     }
@@ -176,7 +176,7 @@ b4_copyright([Locations for Bison parsers in C++],
 
 ])[
     /// 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);
       end = begin;
@@ -186,19 +186,19 @@ b4_copyright([Locations for Bison parsers in C++],
      ** \{ */
   public:
     /// Reset initial location to final location.
-    inline void step ()
+    void step ()
     {
       begin = end;
     }
 
     /// Extend the current location to the COUNT next columns.
-    inline void columns (unsigned int count = 1)
+    void columns (unsigned int count = 1)
     {
       end += count;
     }
 
     /// 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);
     }