Changeset 1e6b350


Ignore:
Timestamp:
Feb 28, 2017, 4:43:49 PM (5 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
60401b76
Parents:
14f6bb3
Message:

Added basic expression analysis to DeclStats?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeTools/DeclStats.cc

    r14f6bb3 r1e6b350  
    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.