Changeset 0766399 for src/Common


Ignore:
Timestamp:
Oct 9, 2024, 5:34:36 PM (12 months ago)
Author:
Peter A. Buhr <pabuhr@…>
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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
src/Common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Common/ErrorObjects.hpp

    r7d415b4 r0766399  
    4141        void append( SemanticErrorException & other );
    4242        void append( CodeLocation location, const std::string & );
    43         bool isEmpty() const;
     43        void throwIfNonEmpty();
    4444        void print();
    4545  private:
  • src/Common/SemanticError.cpp

    r7d415b4 r0766399  
    8888}
    8989
    90 bool SemanticErrorException::isEmpty() const {
    91         return errors.empty();
     90void SemanticErrorException::throwIfNonEmpty() {
     91        if ( !errors.empty() ) {
     92                throw *this;
     93        }
    9294}
    9395
Note: See TracChangeset for help on using the changeset viewer.