- Timestamp:
- May 16, 2018, 10:52:07 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
- Children:
- 7fdb94e, c7d8100c
- Parents:
- 48b9b36
- Location:
- src/Common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/SemanticError.cc
r48b9b36 r4358c1e 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed May 2 18:13:37201813 // Update Count : 812 // Last Modified On : Wed May 16 15:01:20 2018 13 // Update Count : 9 14 14 // 15 15 … … 70 70 //----------------------------------------------------------------------------- 71 71 // Semantic Error 72 bool SemanticErrorThrow = false; 73 72 74 SemanticErrorException::SemanticErrorException( CodeLocation location, std::string error ) { 73 75 append( location, error ); … … 94 96 95 97 void SemanticError( CodeLocation location, std::string error ) { 98 SemanticErrorThrow = true; 96 99 throw SemanticErrorException(location, error); 97 100 } -
src/Common/SemanticError.h
r48b9b36 r4358c1e 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed May 2 18:13:15201813 // Update Count : 2912 // Last Modified On : Wed May 16 15:01:23 2018 13 // Update Count : 30 14 14 // 15 15 … … 21 21 //----------------------------------------------------------------------------- 22 22 // Errors 23 24 extern bool SemanticErrorThrow; 23 25 24 26 __attribute__((noreturn)) void SemanticError( CodeLocation location, std::string error );
Note: See TracChangeset
for help on using the changeset viewer.