Improvements to source file position tracking.
Be better about tracking the full extent of expressions in the parser; this leads to more intelligible error messages when we indicate where exactly the error happened.
This commit is contained in:
4
ispc.h
4
ispc.h
@@ -121,6 +121,10 @@ struct SourcePos {
|
||||
bool operator==(const SourcePos &p2) const;
|
||||
};
|
||||
|
||||
/** Returns a SourcePos that encompasses the extent of both of the given
|
||||
extents. */
|
||||
SourcePos Union(const SourcePos &p1, const SourcePos &p2);
|
||||
|
||||
|
||||
/** @brief Structure that defines a compilation target
|
||||
|
||||
|
||||
Reference in New Issue
Block a user