Changes in src/AST/Pass.impl.hpp [b0d9ff7:95e5018]
- File:
-
- 1 edited
-
src/AST/Pass.impl.hpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.impl.hpp
rb0d9ff7 r95e5018 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 ); \ 27 29 /* back-up the visit children */ \ 28 30 __attribute__((unused)) ast::__pass::visit_children_guard guard1( ast::__pass::visit_children(core, 0) ); \ … … 597 599 guard_symtab guard { *this }; 598 600 // 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. 599 602 static ast::ptr< ast::ObjectDecl > func{ new ast::ObjectDecl{ 600 603 CodeLocation{}, "__func__", … … 602 605 new ast::BasicType{ ast::BasicType::Char, ast::CV::Const }, 603 606 nullptr, VariableLen, DynamicDim 604 } 607 }, 608 nullptr, 609 ast::Storage::Classes(), 610 ast::Linkage::C, 605 611 } }; 606 612 __pass::symtab::addId( core, 0, func ); … … 1193 1199 1194 1200 //-------------------------------------------------------------------------- 1195 // QualifiedNameExpr1196 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 //--------------------------------------------------------------------------1208 1201 // CastExpr 1209 1202 template< typename core_t >
Note:
See TracChangeset
for help on using the changeset viewer.