Changes in src/AST/Pass.impl.hpp [95e5018:b0d9ff7]
- File:
-
- 1 edited
-
src/AST/Pass.impl.hpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.impl.hpp
r95e5018 rb0d9ff7 25 25 #define VISIT_START( node ) \ 26 26 using namespace ast; \ 27 /* back-up the last known code location */ \28 __attribute__((unused)) auto loc_guard = ast::__pass::make_location_guard( core, node, 0 ); \29 27 /* back-up the visit children */ \ 30 28 __attribute__((unused)) ast::__pass::visit_children_guard guard1( ast::__pass::visit_children(core, 0) ); \ … … 599 597 guard_symtab guard { *this }; 600 598 // implicit add __func__ identifier as specified in the C manual 6.4.2.2 601 // This is a C name and so has C linkage.602 599 static ast::ptr< ast::ObjectDecl > func{ new ast::ObjectDecl{ 603 600 CodeLocation{}, "__func__", … … 605 602 new ast::BasicType{ ast::BasicType::Char, ast::CV::Const }, 606 603 nullptr, VariableLen, DynamicDim 607 }, 608 nullptr, 609 ast::Storage::Classes(), 610 ast::Linkage::C, 604 } 611 605 } }; 612 606 __pass::symtab::addId( core, 0, func ); … … 1199 1193 1200 1194 //-------------------------------------------------------------------------- 1195 // QualifiedNameExpr 1196 template< typename core_t > 1197 const ast::Expr * ast::Pass< core_t >::visit( const ast::QualifiedNameExpr * node ) { 1198 VISIT_START( node ); 1199 if ( __visit_children() ) { 1200 guard_symtab guard { *this }; 1201 maybe_accept( node, &QualifiedNameExpr::var ); 1202 maybe_accept( node, &QualifiedNameExpr::type_decl ); 1203 } 1204 VISIT_END( Expr, node ); 1205 } 1206 1207 //-------------------------------------------------------------------------- 1201 1208 // CastExpr 1202 1209 template< typename core_t >
Note:
See TracChangeset
for help on using the changeset viewer.