The refactored functions were
- isReponsibleForCreatingDeclaration
- getQualifiedNameStart
Paths
| Differential D86719
[SyntaxTree][NFC] Refactor function templates into functions taking base class ClosedPublic Authored by eduucaldas on Aug 27 2020, 8:41 AM.
Details Summary 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. This revision is now accepted and ready to land.Aug 27 2020, 11:53 AM Comment Actions Move getDeclaratorRange helpers outside of TreeBuilder
gribozavr2 added inline comments. eduucaldas added inline comments.
This revision was landed with ongoing or failed builds.Aug 28 2020, 5:25 AM Closed by commit rG38bc0060e60f: [SyntaxTree][NFC] Refactor function templates into functions taking base class (authored by eduucaldas). · Explain Why This revision was automatically updated to reflect the committed changes. eduucaldas marked an inline comment as done.
Revision Contents
Diff 288586 clang/lib/Tooling/Syntax/BuildTree.cpp
|