#include <memory>
#include <string>
#include "position.hpp"
 
Go to the source code of this file.
 | 
| 
location  | yy::operator+ (location res, const location &end) | 
|   | Join two location objects to create a location. 
  | 
|   | 
| 
location &  | yy::operator+= (location &res, int width) | 
|   | Change end position in place. 
  | 
|   | 
| 
location  | yy::operator+ (location res, int width) | 
|   | Change end position. 
  | 
|   | 
| 
location &  | yy::operator-= (location &res, int width) | 
|   | Change end position in place. 
  | 
|   | 
| 
location  | yy::operator- (const location &begin, int width) | 
|   | Change end position. 
  | 
|   | 
| 
bool  | yy::operator== (const location &loc1, const location &loc2) | 
|   | Compare two location objects. 
  | 
|   | 
| 
bool  | yy::operator!= (const location &loc1, const location &loc2) | 
|   | Compare two location objects. 
  | 
|   | 
| template<typename YYChar >  | 
| std::basic_ostream< YYChar > &  | yy::operator<< (std::basic_ostream< YYChar > &ostr, const location &loc) | 
|   | Intercept output stream redirection.  More...
  | 
|   | 
| location  | yy::missing_loc () | 
|   | 
| 
location  | yy::span_loc (const location &b, const location &e) | 
|   | 
Define the yy::location class. 
 
◆ missing_loc()
  
  
      
        
          | location yy::missing_loc  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Make a location with line/column initialized to 0 with no null buffer ptr. Used to indicate missing location data. 
 
 
◆ operator<<()
template<typename YYChar > 
  
  
      
        
          | std::basic_ostream<YYChar>& yy::operator<<  | 
          ( | 
          std::basic_ostream< YYChar > &  | 
          ostr,  | 
         
        
           | 
           | 
          const location &  | 
          loc  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Intercept output stream redirection. 
- Parameters
 - 
  
    | ostr | the destination output stream  | 
    | loc | a reference to the location to redirect | 
  
   
Avoid duplicate information.