Also reorganize the code for computing supertypes to make it more symmetric to subtypes.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 34840 Build 34839: arc lint + arc unit
Event Timeline
clang-tools-extra/clangd/XRefs.cpp | ||
---|---|---|
1238 | having a function named getTypeAncestors with a parameter ResolveParents doesn't make much sense. maybe move the check to caller side and simply don't call it if we are not interested in parents? I think it makes sense to make this part also similar to subtypes:
WDYT? |
clang-tools-extra/clangd/XRefs.cpp | ||
---|---|---|
1238 | Agreed, this makes the code cleaner. |
having a function named getTypeAncestors with a parameter ResolveParents doesn't make much sense. maybe move the check to caller side and simply don't call it if we are not interested in parents?
I think it makes sense to make this part also similar to subtypes:
WDYT?