This package provides a
completion-at-point function to complete C/C++
code using clang, offering context-base suggestions for functions,
variables and types without having to save the buffer.
clang-capf doesn't require anything to be installed besides
clang as an external component, a better looking completion
front-end in Emacs, such as ivy might be worth recommending.
Using MELPA and
use-package, a minimal but sufficient setup might
look something like this:
(use-package clang-capf :after cc-mode :config (add-hook 'c-mode-hook (lambda () (add-hook 'completion-at-point-functions #'clang-capf nil t))))
This will let
completion-at-point know that it should try
clang-capf first when looking for completions, in
Also make sure that
In vanilla Emacs:
()for functions or
Any further bugs or questions can be submitted to my public inbox.
clang-capf.el is distributed under the CC0 1.0 Universal (CC0 1.0)
Public Domain Dedication license.