Changes in src/CodeTools/TrackLoc.cc [08fc48f:4e8949f]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeTools/TrackLoc.cc
r08fc48f r4e8949f 33 33 34 34 namespace CodeTools { 35 36 std::ostream & operator<<(std::ostream & out, CodeLocation const & loc) {37 return out << loc.filename << '[' << loc.linenumber << ']';38 }39 40 35 class LocationPrinter { 41 36 size_t printLevel; … … 69 64 } 70 65 else { 71 std::cerr << "Top level node has no CodeLocation " << name << std::endl; 72 exit(EXIT_FAILURE); 66 assertf( false, "Top level node has no CodeLocation %s", name.c_str() ); 73 67 } 74 68 } … … 95 89 acceptAll( translationUnit, printer ); 96 90 } 97 98 91 } // namespace CodeTools 99 92
Note: See TracChangeset
for help on using the changeset viewer.