summaryrefslogtreecommitdiff
path: root/LiteEditor/clang_code_completion.cpp
diff options
context:
space:
mode:
authorJames Cowgill <james410@cowgill.org.uk>2014-08-29 12:01:12 +0100
committerJames Cowgill <james410@cowgill.org.uk>2014-08-29 12:01:12 +0100
commit517e089547f0b721a104ad2fabc6881d2fe2fff0 (patch)
tree65e15229c45ed375b5e381c46ed016d0cc670ae2 /LiteEditor/clang_code_completion.cpp
parent9535c6126d9ed34e0fdf40cc0bdd2dc01159644d (diff)
Imported Upstream version 6.1.1+dfsg
Diffstat (limited to 'LiteEditor/clang_code_completion.cpp')
-rw-r--r--LiteEditor/clang_code_completion.cpp29
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 "));