Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I think per offline discussion, this was going to have some additional docs clarifying the contracts of this function, and maybe extra tests?
The conclusion IIRC was that this function is designed to find the text that you could replace in order to replace an AST node, so it's fairly conservative (but arg expansions are fair game assuming expanded once).
Comment Actions
Right, I just didn't get a chance to look at it again. Planning to do that once I've got some cycles.
Comment Actions
- Rebase, update comments for spelledForExpanded and add tests for multiple arguments.
- Do not dive into macro bodies while looking for a common expansion.
Comment Actions
Thanks!
clang/include/clang/Tooling/Syntax/Tokens.h | ||
---|---|---|
201 | Can we add the motivating use case? |
Can we add the motivating use case?
e.g. between the two sentences: "This is the text that should be replaced if a refactoring were to rewrite the node."