Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    r33b7d49 r4ec9513  
    1010// Created On       : Fri May 15 23:12:02 2015
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Fri Mar 11 10:39:00 2022
    13 // Update Count     : 671
     12// Last Modified On : Wed Apr 13 11:11:00 2022
     13// Update Count     : 672
    1414//
    1515
     
    7575#include "Tuples/Tuples.h"                  // for expandMemberTuples, expan...
    7676#include "Validate/Autogen.hpp"             // for autogenerateRoutines
     77#include "Validate/GenericParameter.hpp"    // for fillGenericParameters, tr...
    7778#include "Validate/FindSpecialDecls.h"      // for findGlobalDecls
    7879#include "Validate/ForallPointerDecay.hpp"  // for decayForallPointers
     
    8081#include "Validate/InitializerLength.hpp"   // for setLengthFromInitializer
    8182#include "Validate/LabelAddressFixer.hpp"   // for fixLabelAddresses
     83#include "Validate/ReturnCheck.hpp"         // for checkReturnStatements
    8284#include "Virtual/ExpandCasts.h"            // for expandCasts
    8385
     
    327329                PASS( "Validate-A", SymTab::validate_A( translationUnit ) );
    328330                PASS( "Validate-B", SymTab::validate_B( translationUnit ) );
    329                 PASS( "Validate-C", SymTab::validate_C( translationUnit ) );
    330331
    331332                CodeTools::fillLocations( translationUnit );
     
    341342
    342343                        forceFillCodeLocations( transUnit );
     344
     345                        // Check as early as possible. Can't happen before
     346                        // LinkReferenceToType, observed failing when attempted
     347                        // before eliminateTypedef
     348                        PASS( "Validate Generic Parameters", Validate::fillGenericParameters( transUnit ) );
     349
     350                        PASS( "Translate Dimensions", Validate::translateDimensionParameters( transUnit ) );
     351                        PASS( "Check Function Returns", Validate::checkReturnStatements( transUnit ) );
     352
     353                        // Must happen before Autogen.
     354                        PASS( "Fix Return Statements", InitTweak::fixReturnStatements( transUnit ) );
    343355
    344356                        PASS( "Implement Concurrent Keywords", Concurrency::implementKeywords( transUnit ) );
     
    426438                        translationUnit = convert( move( transUnit ) );
    427439                } else {
     440                        PASS( "Validate-C", SymTab::validate_C( translationUnit ) );
    428441                        PASS( "Validate-D", SymTab::validate_D( translationUnit ) );
    429442                        PASS( "Validate-E", SymTab::validate_E( translationUnit ) );
Note: See TracChangeset for help on using the changeset viewer.