diff --git a/clang-tools-extra/clangd/CodeComplete.cpp b/clang-tools-extra/clangd/CodeComplete.cpp index 0bec281a388c..dc2a60344132 100644 --- a/clang-tools-extra/clangd/CodeComplete.cpp +++ b/clang-tools-extra/clangd/CodeComplete.cpp @@ -858,7 +858,7 @@ public: // calculate the file proximity, which would capture include/ and src/ // project setup where headers and implementations are not in the same // directory. - FileProximityMatch({FileName}) {} + FileProximityMatch(ArrayRef({FileName})) {} CompletionList run(const SemaCompleteInput &SemaCCInput) && { trace::Span Tracer("CodeCompleteFlow");