Changeset 5ea7a22 for src/SynTree/Mutator.cc
- Timestamp:
- Sep 27, 2017, 4:24:16 PM (7 years ago)
- 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, with_gc
- Children:
- 7fc7cdb
- Parents:
- e4ea10b7
- git-author:
- Rob Schluntz <rschlunt@…> (09/27/17 15:50:09)
- git-committer:
- Rob Schluntz <rschlunt@…> (09/27/17 16:24:16)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Mutator.cc
re4ea10b7 r5ea7a22 17 17 #include <list> // for list 18 18 19 #include "Attribute.h" // for Attribute 19 20 #include "Declaration.h" // for ObjectDecl, Declaration, DeclarationWi... 20 21 #include "Expression.h" // for Expression, ConstantExpr, ConditionalExpr … … 36 37 objectDecl->set_init( maybeMutate( objectDecl->get_init(), *this ) ); 37 38 objectDecl->set_bitfieldWidth( maybeMutate( objectDecl->get_bitfieldWidth(), *this ) ); 39 mutateAll( objectDecl->attributes, *this ); 38 40 return objectDecl; 39 41 } … … 42 44 functionDecl->set_functionType( maybeMutate( functionDecl->get_functionType(), *this ) ); 43 45 functionDecl->set_statements( maybeMutate( functionDecl->get_statements(), *this ) ); 46 mutateAll( functionDecl->attributes, *this ); 44 47 return functionDecl; 45 48 } … … 618 621 } 619 622 623 Attribute * Mutator::mutate( Attribute * attribute ) { 624 mutateAll( attribute->parameters, *this ); 625 return attribute; 626 } 627 620 628 // Local Variables: // 621 629 // tab-width: 4 //
Note: See TracChangeset
for help on using the changeset viewer.