Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Commit

Permalink
Load the local .cquery in all cases that it is present
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Spain committed Jun 20, 2018
1 parent 1acc50f commit 4bbba0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/project.cc
Original file line number Diff line number Diff line change
Expand Up @@ -466,10 +466,10 @@ std::vector<Project::Entry> LoadFromDirectoryListing(

GetFilesInFolder(
config->project_dir, true /*recursive*/, true /*add_folder_to_path*/,
[&folder_args, &files, &use_global_config](const std::string& path) {
[&folder_args, &files](const std::string& path) {
if (SourceFileLanguage(path) != LanguageId::Unknown) {
files.push_back(path);
} else if (GetBaseName(path) == ".cquery" && !use_global_config) {
} else if (GetBaseName(path) == ".cquery") {
LOG_S(INFO) << "Using .cquery arguments from " << path;
folder_args.emplace(GetDirName(path),
ReadCompilerArgumentsFromFile(path));
Expand Down

0 comments on commit 4bbba0b

Please sign in to comment.