Changes in src/Common/SemanticError.cc [ddcedfe:1a69a90]
- File:
-
- 1 edited
-
src/Common/SemanticError.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Common/SemanticError.cc
rddcedfe r1a69a90 90 90 void SemanticErrorException::print() { 91 91 using std::to_string; 92 93 errors.sort([](const error & lhs, const error & rhs) -> bool {94 if(lhs.location.startsBefore(rhs.location)) return true;95 if(rhs.location.startsBefore(lhs.location)) return false;96 97 return lhs.description < rhs.description;98 });99 100 92 for( auto err : errors ) { 101 93 std::cerr << ErrorHelpers::bold() << err.location << ErrorHelpers::error_str() << ErrorHelpers::reset_font() << err.description << std::endl;
Note:
See TracChangeset
for help on using the changeset viewer.