Changeset b128d3e for src/Common
- Timestamp:
- Aug 28, 2017, 1:55:16 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 193bba0
- Parents:
- 7ee1e2f6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/CodeLocation.h
r7ee1e2f6 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.