Changeset 4358c1e for src


Ignore:
Timestamp:
May 16, 2018, 10:52:07 PM (7 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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
Message:

add SemanticErrorThrow? flag

Location:
src/Common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Common/SemanticError.cc

    r48b9b36 r4358c1e  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed May  2 18:13:37 2018
    13 // Update Count     : 8
     12// Last Modified On : Wed May 16 15:01:20 2018
     13// Update Count     : 9
    1414//
    1515
     
    7070//-----------------------------------------------------------------------------
    7171// Semantic Error
     72bool SemanticErrorThrow = false;
     73
    7274SemanticErrorException::SemanticErrorException( CodeLocation location, std::string error ) {
    7375        append( location, error );
     
    9496
    9597void SemanticError( CodeLocation location, std::string error ) {
     98        SemanticErrorThrow = true;
    9699        throw SemanticErrorException(location, error);
    97100}
  • src/Common/SemanticError.h

    r48b9b36 r4358c1e  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed May  2 18:13:15 2018
    13 // Update Count     : 29
     12// Last Modified On : Wed May 16 15:01:23 2018
     13// Update Count     : 30
    1414//
    1515
     
    2121//-----------------------------------------------------------------------------
    2222// Errors
     23
     24extern bool SemanticErrorThrow;
    2325
    2426__attribute__((noreturn)) void SemanticError( CodeLocation location, std::string error );
Note: See TracChangeset for help on using the changeset viewer.