Skip to content
Success

Changes

Summary

  1. Replaced SemanticErrorException::isEmpty with ...::throwIfNonEmpty. This is how it was used in every context and it saves a bit of text (if not two lines) at every use. I considered putting this function in the header for better inlining, but this should have at least the same preformance as the last version. (details)
  2. more proofreading of intro chapter (details)
Commit 16ba4897edb8e47f2990f485549b0053dee60bae by ajbeach
Replaced SemanticErrorException::isEmpty with ...::throwIfNonEmpty. This is how it was used in every context and it saves a bit of text (if not two lines) at every use. I considered putting this function in the header for better inlining, but this should have at least the same preformance as the last version.
The file was modifiedsrc/Common/SemanticError.cpp
The file was modifiedsrc/Validate/ReplaceTypedef.cpp
The file was modifiedsrc/Common/ErrorObjects.hpp
The file was modifiedsrc/Validate/CheckAssertions.cpp
The file was modifiedsrc/AST/Node.hpp
The file was modifiedsrc/AST/Pass.impl.hpp
The file was modifiedsrc/ControlStruct/MultiLevelExit.cpp
The file was modifiedsrc/Parser/DeclarationNode.cpp
The file was modifiedsrc/InitTweak/FixInit.cpp
The file was modifiedsrc/Parser/DeclarationNode.hpp
The file was modifiedsrc/ResolvExpr/CandidateFinder.cpp
Commit 7d415b464a2df73eab1a88eb6306960109363ce7 by Peter Buhr
more proofreading of intro chapter
The file was modifieddoc/theses/mike_brooks_MMath/intro.tex