Homebrew and AUR

Fangrui Song 2018-04-08 09:35:55 -07:00
parent 82b2b9f92c
commit 1051145ce3

@ -19,6 +19,9 @@ cmake --build release
The executable is at `release/ccls`. The executable is at `release/ccls`.
* Mac OS X: [homebrew-ccls](https://github.com/twlz0ne/homebrew-ccls)
* Arch Linux: [aur/ccls-git](https://aur.archlinux.org/packages/ccls-git)
### Project setup ### Project setup
#### [[compile_commands.json]] (Best) #### [[compile_commands.json]] (Best)
@ -45,12 +48,12 @@ Example `.ccls`:
# -I space_is_not_allowed # -I space_is_not_allowed
``` ```
Note: Note:
`.ccls` does not do `word` splitting or `command` substitution for you, `.ccls` does not do *word splitting* or *command substitution* for you,
you cannot use `` `command` `` or space-separated arguments like `%cpp -std=gnu++14 -pthread` you cannot use space-separated arguments like `%cpp -std=gnu++14 -pthread`
### Windows ### Windows
If your project is compiled with MSVC, you may change the compiler driver to `clang-cl`, and use the initialization option `extraClangArguments` pass three options: If your project is compiled with MSVC, you may change the compiler driver (`%clang` above) to `clang-cl`, and use the initialization option `extraClangArguments` to pass three options:
`-fms-extensions -fms-compatibility -fdelayed-template-parsing`. `-fms-extensions -fms-compatibility -fdelayed-template-parsing`.
See https://clang.llvm.org/docs/MSVCCompatibility.html See https://clang.llvm.org/docs/MSVCCompatibility.html