Ignore:
Timestamp:
Feb 12, 2025, 11:33:33 AM (11 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
5e8d75bb
Parents:
54cd1a51
Message:

Just some formatting clean-up I did while investigating EnumDecl::inlinedDecl.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/ConversionCost.cpp

    r54cd1a51 ra8404d9  
    518518        auto srcDecl = src->base;
    519519        auto dstDecl = dst->base;
    520         if (srcDecl->name == dstDecl->name) return Cost::safe;
     520        if ( srcDecl->name == dstDecl->name ) return Cost::safe;
    521521        Cost minCost = Cost::infinity;
    522         for (auto child: dstDecl->inlinedDecl) {
    523                 Cost c = enumCastCost(src, child, symtab, env) + Cost::safe;
    524                 if (c<minCost) minCost = c;
     522        for ( auto child : dstDecl->inlinedDecl ) {
     523                Cost c = enumCastCost( src, child, symtab, env ) + Cost::safe;
     524                if ( c < minCost ) minCost = c;
    525525        }
    526526        return minCost;
Note: See TracChangeset for help on using the changeset viewer.