Changes in src/Common/PassVisitor.impl.h [ba3706f:447c356]
- File:
-
- 1 edited
-
src/Common/PassVisitor.impl.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Common/PassVisitor.impl.h
rba3706f r447c356 55 55 it, 56 56 [](Declaration * decl) -> auto { 57 return new DeclStmt( decl );57 return new DeclStmt( noLabels, decl ); 58 58 } 59 59 ); … … 251 251 || ( empty( beforeDecls ) && empty( afterDecls )) ); 252 252 253 CompoundStmt *compound = new CompoundStmt( );253 CompoundStmt *compound = new CompoundStmt( noLabels ); 254 254 if( !empty(beforeDecls) ) { splice( std::back_inserter( compound->get_kids() ), beforeDecls ); } 255 255 if( !empty(beforeStmts) ) { compound->get_kids().splice( compound->get_kids().end(), *beforeStmts ); } … … 400 400 { 401 401 auto guard = makeFuncGuard( [this]() { indexerScopeEnter(); }, [this]() { indexerScopeLeave(); } ); 402 // implicit add __func__ identifier as specified in the C manual 6.4.2.2403 static ObjectDecl func(404 "__func__", noStorageClasses, LinkageSpec::C, nullptr,405 new ArrayType( Type::Qualifiers(), new BasicType( Type::Qualifiers( Type::Const ), BasicType::Char ), nullptr, true, false ),406 nullptr407 );408 indexerAddId( &func );409 402 maybeAccept_impl( node->type, *this ); 410 403 maybeAccept_impl( node->statements, *this ); … … 425 418 { 426 419 auto guard = makeFuncGuard( [this]() { indexerScopeEnter(); }, [this]() { indexerScopeLeave(); } ); 427 // implicit add __func__ identifier as specified in the C manual 6.4.2.2428 static ObjectDecl func(429 "__func__", noStorageClasses, LinkageSpec::C, nullptr,430 new ArrayType( Type::Qualifiers(), new BasicType( Type::Qualifiers( Type::Const ), BasicType::Char ), nullptr, true, false ),431 nullptr432 );433 indexerAddId( &func );434 420 maybeMutate_impl( node->type, *this ); 435 421 maybeMutate_impl( node->statements, *this );
Note:
See TracChangeset
for help on using the changeset viewer.