Changes in src/SynTree/Visitor.cc [2b7bf59:5809461]
- File:
-
- 1 edited
-
src/SynTree/Visitor.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Visitor.cc
r2b7bf59 r5809461 17 17 #include <list> // for list 18 18 19 #include "Attribute.h" // for Attribute20 19 #include "Constant.h" // for Constant 21 20 #include "Declaration.h" // for DeclarationWithType, ObjectDecl, Declaration … … 36 35 maybeAccept( objectDecl->get_init(), *this ); 37 36 maybeAccept( objectDecl->get_bitfieldWidth(), *this ); 38 acceptAll( objectDecl->attributes, *this );39 37 } 40 38 … … 42 40 maybeAccept( functionDecl->get_functionType(), *this ); 43 41 maybeAccept( functionDecl->get_statements(), *this ); 44 acceptAll( functionDecl->attributes, *this );45 42 } 46 43 … … 490 487 491 488 492 void Visitor::visit( Subrange * ) {} 493 494 495 void Visitor::visit( Constant * ) {} 496 497 void Visitor::visit( Attribute * attribute ) { 498 acceptAll( attribute->parameters, *this ); 499 } 500 489 void Visitor::visit( __attribute__((unused)) Subrange *subrange ) {} 490 491 492 void Visitor::visit( __attribute__((unused)) Constant *constant ) {} 501 493 // Local Variables: // 502 494 // tab-width: 4 //
Note:
See TracChangeset
for help on using the changeset viewer.