From fd891825f425006ad1fc6642a2c8fe259926aab6 Mon Sep 17 00:00:00 2001 From: eidheim Date: Sun, 15 May 2016 10:29:35 +0200 Subject: [PATCH] Added info message when opening a clang source and a build system is not found --- src/source_clang.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/source_clang.cc b/src/source_clang.cc index c05516a..1d3b150 100644 --- a/src/source_clang.cc +++ b/src/source_clang.cc @@ -190,6 +190,8 @@ void Source::ClangViewParse::soft_reparse() { std::vector Source::ClangViewParse::get_compilation_commands() { auto build=Project::Build::create(file_path); + if(build->project_path.empty()) + Info::get().print("Could not find a supported build system"); auto default_build_path=build->get_default_path(); build->update_default(); clang::CompilationDatabase db(default_build_path.string());