From 517e089547f0b721a104ad2fabc6881d2fe2fff0 Mon Sep 17 00:00:00 2001 From: James Cowgill Date: Fri, 29 Aug 2014 12:01:12 +0100 Subject: Imported Upstream version 6.1.1+dfsg --- LiteEditor/clang_code_completion.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'LiteEditor/clang_code_completion.cpp') diff --git a/LiteEditor/clang_code_completion.cpp b/LiteEditor/clang_code_completion.cpp index 4f7f137f..feac2f5b 100644 --- a/LiteEditor/clang_code_completion.cpp +++ b/LiteEditor/clang_code_completion.cpp @@ -1,3 +1,28 @@ +////////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// +// +// copyright : (C) 2014 The CodeLite Team +// file name : clang_code_completion.cpp +// +// ------------------------------------------------------------------------- +// A +// _____ _ _ _ _ +// / __ \ | | | | (_) | +// | / \/ ___ __| | ___| | _| |_ ___ +// | | / _ \ / _ |/ _ \ | | | __/ _ ) +// | \__/\ (_) | (_| | __/ |___| | || __/ +// \____/\___/ \__,_|\___\_____/_|\__\___| +// +// F i l e +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +////////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + #if HAS_LIBCLANG #include "clang_code_completion.h" @@ -218,6 +243,10 @@ void ClangCodeCompletion::OnBuildStarting(clBuildEvent& e) wxString cxx = bldConf->GetCompiler()->GetTool(wxT("CXX")); wxString cc = bldConf->GetCompiler()->GetTool(wxT("CC")); + // CMake does not handle backslahses pretty well... + cxx.Replace("\\", "/"); + cc.Replace("\\", "/"); + cxx.Prepend(wxT("codelite-cc ")); cc.Prepend(wxT("codelite-cc ")); -- cgit v1.2.3