Will be used in other components that need ancestor traversal.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/support/Path.h | ||
---|---|---|
33 | The signature is a bit weird here,
maybe we should expose absoluteParent instead? |
Comment Actions
maybe we should expose absoluteParent instead?
doing that instead. also updating tidyprovider and configyamlparser to make use of this helper now, PTAL.
Comment Actions
- Expose absoluteParent instead of whole traverse action
- Use helper in existing places that use path::parent_path for traversal
Comment Actions
Thanks!
clang-tools-extra/clangd/ConfigProvider.cpp | ||
---|---|---|
101 ↗ | (On Diff #323820) | absoluteParent? I think this can be moved into the loop init now, it's not used anywhere else |
clang-tools-extra/clangd/support/Path.h | ||
31 | Maybe add a hint why we use this... "unlike sys::parent_path, does not consider C: a parent of C:\" |
Maybe add a hint why we use this...
"unlike sys::parent_path, does not consider C: a parent of C:\"