diff options
Diffstat (limited to 'LiteEditor/clang_code_completion.cpp')
-rw-r--r-- | LiteEditor/clang_code_completion.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
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 "));
|