Intel SPMD Program Compiler  1.3.0
Public Member Functions | Public Attributes
SourcePos Struct Reference

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

#include <ispc.h>

Collaboration diagram for SourcePos:
Collaboration graph
[legend]

List of all members.

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 119 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 637 of file ispc.cpp.

References first_column, first_line, last_column, last_line, Module::module, name, and NULL.


Member Function Documentation

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

Definition at line 670 of file ispc.cpp.

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

void SourcePos::Print ( ) const

Member Data Documentation

const char* SourcePos::name

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