[cfe-commits] r107324 - /cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp
Daniel Dunbar
daniel at zuster.org
Wed Jun 30 14:40:01 PDT 2010
Author: ddunbar
Date: Wed Jun 30 16:40:01 2010
New Revision: 107324
URL: http://llvm.org/viewvc/llvm-project?rev=107324&view=rev
Log:
libclang: When invoking external clang process to get code completion results,
pass -ccc-clang-cxx to force C++ support (even if the binary was built without
it).
Modified:
cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp
Modified: cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp?rev=107324&r1=107323&r2=107324&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp (original)
+++ cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp Wed Jun 30 16:40:01 2010
@@ -291,6 +291,9 @@
llvm::sys::Path ClangPath = CXXIdx->getClangPath();
argv.push_back(ClangPath.c_str());
+ // Always use Clang C++ support.
+ argv.push_back("-ccc-clang-cxx");
+
// Add the '-fsyntax-only' argument so that we only perform a basic
// syntax check of the code.
argv.push_back("-fsyntax-only");
More information about the cfe-commits
mailing list