From 78fe0c7ebef3a38a980d9e2cf750007ff87c5f19 Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Tue, 27 Feb 2018 23:08:23 -0800 Subject: [PATCH] Better comment in project.cc --- src/project.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/project.cc b/src/project.cc index 4da2fe64..de263054 100644 --- a/src/project.cc +++ b/src/project.cc @@ -250,7 +250,10 @@ Project::Entry GetCompilationEntryFromCompileCommandEntry( } } - // This is most likely the file path we will be passing to clang. + // This is most likely the file path we will be passing to clang. The + // path needs to be absolute, otherwise clang_codeCompleteAt is extremely + // slow. See + // https://github.com/cquery-project/cquery/commit/af63df09d57d765ce12d40007bf56302a0446678. if (EndsWith(arg, base_name)) arg = cleanup_maybe_relative_path(arg); // TODO Exclude .a .o to make link command in compile_commands.json work.