diff --git a/FAQ.md b/FAQ.md index 8da3a77..0e10032 100644 --- a/FAQ.md +++ b/FAQ.md @@ -1,3 +1,7 @@ +### Does it support `compile_flags.txt`? + +No. https://github.com/MaskRay/ccls/issues/110 + ### Some C/C++ headers are not recognized #### if you are emacs user, make sure company-lsp is used @@ -46,18 +50,6 @@ If you want to specify additional search paths: * `print '%clang\n%cpp -std=gnu++17\n-isystem/tmp/include' > .ccls` * emacs-ccls: `(setq ccls-extra-init-params '(:clang (:extraArgs ["-isystem" "/tmp/include"])))` -### `-std=c++1z` `-std=c++17` `bits/unordered_map.h` - -In C++17 mode, it is possible to cause clang to crash when `bits/unordered_map.h` is indexed. -See https://bugs.llvm.org/show_bug.cgi?id=37695 for details. -The workaround is to add `-D__cpp_deduction_guides=0 -Wno-macro-redefined` to the initialization option `clang.extraArgs` - -In Emacs, it is: -```elisp -(setq ccls-extra-init-params - '(:clang (:extraArgs ("-D__cpp_deduction_guides=0" "-Wno-macro-redefined")))) -``` - ### Project root detection [emacs-ccls](https://github.com/MaskRay/emacs-cquery/) locates the project root in the following order: diff --git a/Getting-started.md b/Getting-started.md index 83a5406..5142f54 100644 --- a/Getting-started.md +++ b/Getting-started.md @@ -75,6 +75,8 @@ Example `.ccls`: %clang %c -std=gnu11 %cpp -std=gnu++14 +%objective-c %objective-cpp -DGNUSTEP +%c %cpp -DFOO -pthread # Includes