Intel SPMD Program Compiler  1.9.1
Public Member Functions | Public Attributes | List of all members
SourcePos Struct Reference

Representation of a range of positions in a source file. More...

#include <ispc.h>

Collaboration diagram for SourcePos:
Collaboration graph
[legend]

Public Member Functions

 SourcePos (const char *n=NULL, int fl=0, int fc=0, int ll=0, int lc=0)
 
void Print () const
 
llvm::DIFile GetDIFile () const
 
bool operator== (const SourcePos &p2) const
 

Public Attributes

const char * name
 
int first_line
 
int first_column
 
int last_line
 
int last_column
 

Detailed Description

Representation of a range of positions in a source file.

This class represents a range of characters in a source file (e.g. those that span a token's definition), from starting line and column to ending line and column. (These values are tracked by the lexing code). Both lines and columns are counted starting from one.

Definition at line 134 of file ispc.h.

Constructor & Destructor Documentation

SourcePos::SourcePos ( const char *  n = NULL,
int  fl = 0,
int  fc = 0,
int  ll = 0,
int  lc = 0 
)

Definition at line 1552 of file ispc.cpp.

References Module::module.

Member Function Documentation

llvm::DIFile SourcePos::GetDIFile ( ) const
bool SourcePos::operator== ( const SourcePos p2) const

Definition at line 1595 of file ispc.cpp.

References first_column, first_line, last_column, last_line, and name.

void SourcePos::Print ( ) const

Member Data Documentation

int SourcePos::first_column
int SourcePos::first_line
int SourcePos::last_column
int SourcePos::last_line
const char* SourcePos::name

The documentation for this struct was generated from the following files: