The refactored functions were
- isReponsibleForCreatingDeclaration
- getQualifiedNameStart
Differential D86719
[SyntaxTree][NFC] Refactor function templates into functions taking base class eduucaldas on Aug 27 2020, 8:41 AM. Authored by
Details The refactored functions were
Diff Detail
Event TimelineComment Actions As a result of this change getDeclaratorRange is used exclusively inside processDeclaratorAndDeclaration and the last two arguments are direct results of getQualifiedNameStart(D) and getInitializerRange(D), which are used exclusively in this context. Perhaps we should inline getQualifiedNameStart and getInitializerRange and make getDeclaratorRange a member function taking a Decl. What do you think?
Comment Actions
These helpers seem to have well-defined semantics, so I'd rather keep them separate. If anything, I'd make helpers into free functions to emphasize that they don't use the class member variables and are standalone functions. Comment Actions Move getDeclaratorRange helpers outside of TreeBuilder
|