Ignore:
Timestamp:
Dec 14, 2023, 9:05:55 PM (10 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
19a2890
Parents:
21ad568
Message:

second attempt at simplifying SemanticError? messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Concurrency/Corun.cpp

    r21ad568 rca9d65e  
    99// Author           : Colby Parsons
    1010// Created On       : Monday October 9 15:16:42 2023
    11 // Last Modified By : Colby Parsons
    12 // Last Modified On : Monday October 9 15:16:42 2023
    13 // Update Count     : 0
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Thu Dec 14 17:32:17 2023
     13// Update Count     : 1
    1414//
    1515
     
    5757    Stmt * postvisit( const CoforStmt * stmt ) {
    5858        if ( !runnerBlockDecl || !coforRunnerDecl )
    59             SemanticError( stmt->location, "To use cofor statements add #include <cofor.hfa>\n" );
     59            SemanticError( stmt->location, "To use cofor statements add #include <cofor.hfa>" );
    6060
    6161        if ( stmt->inits.size() != 1 )
    62             SemanticError( stmt->location, "Cofor statements must have a single initializer in the loop control\n" );
     62            SemanticError( stmt->location, "Cofor statements must have a single initializer in the loop control" );
    6363
    6464        if ( !stmt->body )
     
    7777        const DeclStmt * declStmtPtr = dynamic_cast<const DeclStmt *>(stmt->inits.at(0).get());
    7878        if ( ! declStmtPtr )
    79             SemanticError( stmt->location, "Cofor statement initializer is somehow not a decl statement?\n" );
     79            SemanticError( stmt->location, "Cofor statement initializer is somehow not a decl statement?" );
    8080
    8181        const Decl * declPtr = dynamic_cast<const Decl *>(declStmtPtr->decl.get());
    8282        if ( ! declPtr )
    83             SemanticError( stmt->location, "Cofor statement initializer is somehow not a decl?\n" );
     83            SemanticError( stmt->location, "Cofor statement initializer is somehow not a decl?" );
    8484
    8585        Type * initType = new TypeofType( new NameExpr( loc, declPtr->name ) );
     
    246246    Stmt * postvisit( const CorunStmt * stmt ) {
    247247        if ( !runnerBlockDecl || !coforRunnerDecl )
    248             SemanticError( stmt->location, "To use corun statements add #include <cofor.hfa>\n" );
     248            SemanticError( stmt->location, "To use corun statements add #include <cofor.hfa>" );
    249249
    250250        if ( !stmt->stmt )
Note: See TracChangeset for help on using the changeset viewer.