Turn on code-completion for macros within CIndex

llvm-svn: 92500
This commit is contained in:
Douglas Gregor 2010-01-04 19:45:17 +00:00
parent a7c8e58d95
commit 51af7f628c
1 changed files with 3 additions and 1 deletions

View File

@ -1272,7 +1272,9 @@ CXCodeCompleteResults *clang_codeComplete(CXIndex CIdx,
argv.push_back(code_complete_at.c_str());
argv.push_back("-Xclang");
argv.push_back("-no-code-completion-debug-printer");
argv.push_back("-Xclang");
argv.push_back("-code-completion-macros");
std::vector<std::string> RemapArgs;
for (unsigned i = 0; i != num_unsaved_files; ++i) {
char tmpFile[L_tmpnam];