lang/cc: add system libs to default ccls init options on mac

This commit is contained in:
Henrik Lissner 2019-12-13 14:24:17 -05:00
parent 0cb62657b7
commit 967390fe6c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -253,4 +253,11 @@ This is ignored by ccls.")
(after! projectile (after! projectile
(add-to-list 'projectile-globally-ignored-directories ".ccls-cache") (add-to-list 'projectile-globally-ignored-directories ".ccls-cache")
(add-to-list 'projectile-project-root-files-bottom-up ".ccls-root") (add-to-list 'projectile-project-root-files-bottom-up ".ccls-root")
(add-to-list 'projectile-project-root-files-top-down-recurring "compile_commands.json"))) (add-to-list 'projectile-project-root-files-top-down-recurring "compile_commands.json"))
:config
(when IS-MAC
(setq ccls-initialization-options
`(:clang ,(list :extraArgs ["-isystem/Library/Developer/CommandLineTools/usr/include/c++/v1"
"-isystem/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include"
"-isystem/usr/local/include"]
:resourceDir (string-trim (shell-command-to-string "clang -print-resource-dir")))))))