Changes in src/Common/CodeLocation.h [21f0aa8:b128d3e]
- File:
-
- 1 edited
-
src/Common/CodeLocation.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Common/CodeLocation.h
r21f0aa8 rb128d3e 9 9 // Author : Andrew Beach 10 10 // Created On : Thr Aug 17 11:23:00 2017 11 // Last Modified By : Andrew Beach12 // Last Modified On : Thr Aug 17 14:07:00201713 // Update Count : 011 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Aug 28 12:46:01 2017 13 // Update Count : 2 14 14 // 15 15 … … 66 66 67 67 inline std::string to_string( const CodeLocation& location ) { 68 return location.isSet() ? location.filename + ":" + std::to_string(location.linenumber) + " " : ""; 68 // Column number ":1" allows IDEs to parse the error message and position the cursor in the source text. 69 return location.isSet() ? location.filename + ":" + std::to_string(location.linenumber) + ":1 " : ""; 69 70 } 70 71
Note:
See TracChangeset
for help on using the changeset viewer.