Open hailiyouyu opened 8 years ago
when I try this, I get some output:
.emacs.d/irony/bin/irony-server complete /tmp/ac.c 5 1 <<'EOF' | grep int
EOF
execute: Command{action=Command::Complete, file='/tmp/ac.c', dir='', line=5, column=1, flags=[], unsavedFiles.count=0, opt=off}
("int" 50 "" "" "int" 3 (""))
I tried turn on company-irony mode manually in Emacs, It shows some keywords like char, const, double, enum and some internal macros like amd64, APPLE, clang, clang_major__ etc.
It seems that irony-company can find the c library. But when I use company-mode only, completion is OK.
I set up irony-mode with company-irony in emacs and it works well with C++. But when I type in c files, it has no hints about any functions.
My settings of irony-mode and company-irony is:
My situation is the same with issue #246, and I have tried this command:
It outputs:
My OS environment: Mac OS X 10.11.2, Emacs 24.5.1, and I use
to install clang-3.6.2 I don't understand that why it works with C++ and not with C. Any advice is welcome.
Hailiyouyu