Struct StringWithLineNumber#
Defined in File FileUtility.h
Struct Documentation#
-
struct StringWithLineNumber#
String with source location information.
The location information is a file name string (empty means generated code) and a line number. Line numbers are one-origin; the first line of a file is numbered 1, not 0.
- Todo:
What does it mean to have a non-positive line number? What line number should be used for generated code when the
filenamemember is empty?
Public Functions
-
inline StringWithLineNumber(const std::string &str, const std::string &filename, unsigned int line)#
- ROSE_UTIL_API std::string toString () const