Skip to content

Commit

Permalink
remove cc1 flag and use clang driver to pass parameter to frontent.…
Browse files Browse the repository at this point in the history
  • Loading branch information
niosus committed May 8, 2016
1 parent b668125 commit 72e3060
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/completion/bin_complete.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 72e3060

Please sign in to comment.