Changeset 2cb70aa for src/Common
- Timestamp:
- Jan 31, 2018, 4:42:38 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 84276ba
- Parents:
- 5e2c348
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/PassVisitor.impl.h
r5e2c348 r2cb70aa 365 365 maybeAccept_impl ( node->attributes , *this ); 366 366 367 if ( node->name != "" ) { 368 indexerAddId( node ); 369 } 367 indexerAddId( node ); 370 368 371 369 VISIT_END( node ); … … 381 379 maybeMutate_impl ( node->attributes , *this ); 382 380 383 if ( node->name != "" ) { 384 indexerAddId( node ); 385 } 381 indexerAddId( node ); 386 382 387 383 MUTATE_END( DeclarationWithType, node ); … … 394 390 VISIT_START( node ); 395 391 396 if ( node->name != "" ) { 397 indexerAddId( node ); 398 } 399 400 { 392 indexerAddId( node ); 393 394 { 395 // with clause introduces a level of scope (for the with expression members). 396 // with clause exprs are added to the indexer before parameters so that parameters 397 // shadow with exprs and not the other way around. 401 398 auto guard = makeFuncGuard( [this]() { indexerScopeEnter(); }, [this]() { indexerScopeLeave(); } ); 402 399 // implicit add __func__ identifier as specified in the C manual 6.4.2.2 … … 419 416 MUTATE_START( node ); 420 417 421 if ( node->name != "" ) { 422 indexerAddId( node ); 423 } 424 425 { 418 indexerAddId( node ); 419 420 { 421 // with clause introduces a level of scope (for the with expression members). 422 // with clause exprs are added to the indexer before parameters so that parameters 423 // shadow with exprs and not the other way around. 426 424 auto guard = makeFuncGuard( [this]() { indexerScopeEnter(); }, [this]() { indexerScopeLeave(); } ); 427 425 // implicit add __func__ identifier as specified in the C manual 6.4.2.2
Note: See TracChangeset
for help on using the changeset viewer.