Ignore:
Timestamp:
Dec 16, 2023, 1:01:44 AM (22 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
b7898ac
Parents:
0fa0201d (diff), 69ab896 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/FixQualifiedTypes.cpp

    r0fa0201d r5546eee4  
    99// Author           : Andrew Beach
    1010// Created On       : Thr Apr 21 11:13:00 2022
    11 // Last Modified By : Andrew Beach
    12 // Last Modified On : Tue Sep 20 16:15:00 2022
    13 // Update Count     : 1
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Wed Dec 13 09:00:25 2023
     13// Update Count     : 6
    1414//
    1515
     
    4141                                auto td = symtab.globalLookupType( inst->name );
    4242                                if ( !td ) {
    43                                         SemanticError( *location, toString("Use of undefined global type ", inst->name) );
     43                                        SemanticError( *location, "Use of undefined global type %s.", inst->name.c_str() );
    4444                                }
    4545                                auto base = td->base;
     
    5050                        } else {
    5151                                // .T => T is not a type name.
    52                                 assertf( false, "unhandled global qualified child type: %s", toCString(child) );
     52                                assertf( false, "unhandled global qualified child type: %s", toCString( child ) );
    5353                        }
    5454                } else {
     
    6363                                instp = inst;
    6464                        } else {
    65                                 SemanticError( *location, toString("Qualified type requires an aggregate on the left, but has: ", parent) );
     65                                SemanticError( *location, "Qualified type requires an aggregate on the left, but has %s.", toCString( parent ) );
    6666                        }
    6767                        // TODO: Need to handle forward declarations.
     
    8181                                } else {
    8282                                        // S.T - S is not an aggregate => error.
    83                                         assertf( false, "unhandled qualified child type: %s", toCString(type) );
     83                                        assertf( false, "unhandled qualified child type %s.", toCString( type ) );
    8484                                }
    8585                        }
    8686                        // failed to find a satisfying definition of type
    87                         SemanticError( *location, toString("Undefined type in qualified type: ", type) );
     87                        SemanticError( *location, "Undefined type in qualified type %s", toCString( type ) );
    8888                }
    8989        }
Note: See TracChangeset for help on using the changeset viewer.