Changeset 02e5ab6 for src/SymTab


Ignore:
Timestamp:
Sep 28, 2015, 6:25:43 PM (10 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
097e2b0, 1cbca6e
Parents:
20e409e
Message:

add preprocessor flag -DCFORALL=1, add syntax for constructor/destructor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Validate.cc

    r20e409e r02e5ab6  
    99// Author           : Richard C. Bilson
    1010// Created On       : Sun May 17 21:50:04 2015
    11 // Last Modified By : Rob Schluntz
    12 // Last Modified On : Wed Aug 05 14:00:24 2015
    13 // Update Count     : 195
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Tue Aug 11 16:59:35 2015
     13// Update Count     : 196
    1414//
    1515
     
    894894                DeclarationWithType *ret = Mutator::mutate( objDecl );
    895895                typedefNames = oldNames;
     896                // is the type a function?
    896897                if ( FunctionType *funtype = dynamic_cast<FunctionType *>( ret->get_type() ) ) {
     898                        // replace the current object declaration with a function declaration
    897899                        return new FunctionDecl( ret->get_name(), ret->get_storageClass(), ret->get_linkage(), funtype, 0, ret->get_isInline(), ret->get_isNoreturn() );
    898900                } else if ( objDecl->get_isInline() || objDecl->get_isNoreturn() ) {
Note: See TracChangeset for help on using the changeset viewer.