Changeset 0766399 for src/Common
- Timestamp:
- Oct 9, 2024, 5:34:36 PM (12 months ago)
- Branches:
- master
- Children:
- 1a8b17a
- Parents:
- 7d415b4 (diff), 16ba4897 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src/Common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/ErrorObjects.hpp
r7d415b4 r0766399 41 41 void append( SemanticErrorException & other ); 42 42 void append( CodeLocation location, const std::string & ); 43 bool isEmpty() const;43 void throwIfNonEmpty(); 44 44 void print(); 45 45 private: -
src/Common/SemanticError.cpp
r7d415b4 r0766399 88 88 } 89 89 90 bool SemanticErrorException::isEmpty() const { 91 return errors.empty(); 90 void SemanticErrorException::throwIfNonEmpty() { 91 if ( !errors.empty() ) { 92 throw *this; 93 } 92 94 } 93 95
Note:
See TracChangeset
for help on using the changeset viewer.