Ignore:
Timestamp:
Dec 14, 2023, 9:05:55 PM (7 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/InitTweak/FixInit.cpp

    r21ad568 rca9d65e  
    10571057        )
    10581058        if ( ! diff.empty() ) {
    1059                 SemanticError( stmt, std::string("jump to label '") + stmt->target.name + "' crosses initialization of " + (*diff.begin())->name + " " );
     1059                SemanticError( stmt->location, "jump to label \"%s\" crosses initialization of \"%s\".",
     1060                                           stmt->target.name.c_str(), (*diff.begin())->name.c_str() );
    10601061        } // if
    10611062}
     
    10761077
    10771078bool checkWarnings( const ast::FunctionDecl * funcDecl ) {
    1078         // only check for warnings if the current function is a user-defined
    1079         // constructor or destructor
     1079        // only check for warnings if the current function is a user-defined constructor or destructor
    10801080        if ( ! funcDecl ) return false;
    10811081        if ( ! funcDecl->stmts ) return false;
Note: See TracChangeset for help on using the changeset viewer.