Changes in src/AST/Pass.impl.hpp [e8616b6:9e23b446]
- File:
-
- 1 edited
-
src/AST/Pass.impl.hpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.impl.hpp
re8616b6 r9e23b446 597 597 guard_symtab guard { *this }; 598 598 // implicit add __func__ identifier as specified in the C manual 6.4.2.2 599 // This is a C name and so has C linkage.600 599 static ast::ptr< ast::ObjectDecl > func{ new ast::ObjectDecl{ 601 600 CodeLocation{}, "__func__", … … 603 602 new ast::BasicType{ ast::BasicType::Char, ast::CV::Const }, 604 603 nullptr, VariableLen, DynamicDim 605 }, 606 nullptr, 607 ast::Storage::Classes(), 608 ast::Linkage::C, 604 } 609 605 } }; 610 606 __pass::symtab::addId( core, 0, func ); … … 685 681 if ( __visit_children() ) { 686 682 // unlike structs, traits, and unions, enums inject their members into the global scope 687 maybe_accept( node, &EnumDecl::base );688 683 maybe_accept( node, &EnumDecl::params ); 689 684 maybe_accept( node, &EnumDecl::members );
Note:
See TracChangeset
for help on using the changeset viewer.