File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -92,13 +92,11 @@ std::optional<Path> getCorrespondingHeaderOrSource(PathRef OriginalFile,
92
92
// For each symbol in the original file, we get its target location (decl or
93
93
// def) from the index, then award that target file.
94
94
#ifdef CLANGD_PATH_CASE_INSENSITIVE
95
- auto pathEqual = [](const llvm::StringRef & l, const llvm::StringRef & r) {
95
+ auto pathEqual = [](llvm::StringRef l, llvm::StringRef r) {
96
96
return l.equals_insensitive (r);
97
97
};
98
98
#else
99
- auto pathEqual = [](const llvm::StringRef &l, const llvm::StringRef &r) {
100
- return l == r;
101
- };
99
+ auto pathEqual = [](llvm::StringRef l, llvm::StringRef r) { return l == r; };
102
100
#endif
103
101
Index->lookup (Request, [&](const Symbol &Sym) {
104
102
auto TargetPathDefinition =
You can’t perform that action at this time.
0 commit comments