LSP (preferred)
;; in init.el
:lang
(cc +lsp)
Irony-Mode
It does not work out of the box on macOS, but it is possible to put additional header flags to ~/.clang_complete
, as long as no intermediate parent directory contains .clang_complete
or compile_flags.txt
.
rtags
rtags also does not work out of the box on macOS, requiring users to configure ~/.rdmrc
.
--isystem=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1
--isystem=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include
<...>