Changeset 8191203 for src/CodeTools


Ignore:
Timestamp:
Mar 3, 2017, 10:12:10 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, stuck-waitfor-destruct, with_gc
Children:
c443d1d, d107010
Parents:
dd020c0 (diff), bf8da66 (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 plg2:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeTools/DeclStats.cc

    rdd020c0 r8191203  
    200200                        // skip if already seen declaration for this function
    201201                        const std::string& mangleName = decl->get_mangleName().empty() ? decl->get_name() : decl->get_mangleName();
    202                         if ( ! seen_names.insert( mangleName ).second ) return;
     202                        if ( ! seen_names.insert( mangleName ).second ) {
     203                                maybeAccept( decl->get_statements(), *this );
     204                                return;
     205                        }
    203206                       
    204207                        Stats& stats = for_linkage[ decl->get_linkage() ];
     
    228231
    229232                        analyzeFunc( fnTy, stats, stats.params, stats.returns );
     233
     234                        // analyze expressions in decl statements
     235                        maybeAccept( decl->get_statements(), *this );
    230236                }
    231237
Note: See TracChangeset for help on using the changeset viewer.