We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67d16b6 commit d99da80Copy full SHA for d99da80
clang-tools-extra/clangd/ConfigProvider.cpp
@@ -103,7 +103,7 @@ Provider::fromAncestorRelativeYAMLFiles(llvm::StringRef RelPath,
103
I != E; ++I) {
104
// Avoid weird non-substring cases like phantom "." components.
105
// In practice, Component is a substring for all "normal" ancestors.
106
- if (I->end() < Parent.begin() && I->end() > Parent.end())
+ if (I->end() < Parent.begin() || I->end() > Parent.end())
107
continue;
108
Ancestors.emplace_back(Parent.begin(), I->end() - Parent.begin());
109
}
0 commit comments