From c7e517628494e962395c7881e9a36aa8da2161bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 31 Aug 2018 16:06:52 +0200 Subject: [PATCH] Fixed #8061 (Problems with handling of --project argument) --- lib/importproject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/importproject.cpp b/lib/importproject.cpp index 64f508652..91aa93e41 100644 --- a/lib/importproject.cpp +++ b/lib/importproject.cpp @@ -172,7 +172,7 @@ ImportProject::Type ImportProject::import(const std::string &filename) std::ifstream fin(filename); if (!fin.is_open()) return MISSING; - if (endsWith(filename, "compile_commands.json", 21)) { + if (endsWith(filename, ".json", 5)) { importCompileCommands(fin); return COMPILE_DB; } else if (endsWith(filename, ".sln", 4)) {