From 72e30606c0a490f02166914daefb1db83d33c53a Mon Sep 17 00:00:00 2001 From: Igor Bogoslavskyi Date: Sun, 8 May 2016 19:27:33 +0200 Subject: [PATCH] remove `cc1` flag and use clang driver to pass parameter to frontent. More here: http://clang.llvm.org/docs/FAQ.html --- plugin/completion/bin_complete.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/completion/bin_complete.py b/plugin/completion/bin_complete.py index 126154ed..524d2774 100644 --- a/plugin/completion/bin_complete.py +++ b/plugin/completion/bin_complete.py @@ -56,7 +56,7 @@ class Completer(BaseCompleter): """ clang_binary = None - init_flags = ["-cc1", "-fsyntax-only", "-x c++"] + init_flags = ["-c", "-fsyntax-only", "-x c++"] flags_dict = {} std_flag = None @@ -182,8 +182,8 @@ def complete(self, view, cursor_pos, show_errors): with open(temp_file_name, "w", encoding='utf-8') as tmp_file: tmp_file.write(file_body) - complete_at_str = "{complete_flag} {file}:{row}:{col} {file}".format( - complete_flag="-code-completion-at", + complete_at_str = "{complete_flag}={file}:{row}:{col} {file}".format( + complete_flag="-Xclang -code-completion-at", file=temp_file_name, row=row, col=col) complete_cmd = "{binary} {init} {std} {complete_at} {includes}".format(