Intel SPMD Program Compiler  1.12.0
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

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 131 of file ispc.h.

Constructor & Destructor Documentation

◆ SourcePos()

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

Definition at line 1618 of file ispc.cpp.

References Module::module.

Member Function Documentation

◆ GetDIFile()

llvm::DIFile SourcePos::GetDIFile ( ) const

◆ operator==()

bool SourcePos::operator== ( const SourcePos p2) const

Definition at line 1654 of file ispc.cpp.

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

◆ Print()

void SourcePos::Print ( ) const

Member Data Documentation

◆ first_column

int SourcePos::first_column

◆ first_line

int SourcePos::first_line

◆ last_column

int SourcePos::last_column

◆ last_line

int SourcePos::last_line

◆ name

const char* SourcePos::name

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