-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for compile_flags.txt? #110
Comments
ccls does not read It reads |
I know, I just asked out of conformance with clang tools. I'll close it as it seems there's no interest(?). |
It is more than "there's no interest" :)
FixedCompilationDatabase::
FixedCompilationDatabase(Twine Directory, ArrayRef<std::string> CommandLine) {
std::vector<std::string> ToolCommandLine(1, "clang-tool");
ToolCommandLine.insert(ToolCommandLine.end(),
CommandLine.begin(), CommandLine.end());
CompileCommands.emplace_back(Directory, StringRef(),
std::move(ToolCommandLine),
StringRef());
} |
@MaskRay can you help me on how should I put this
I've always used this with YouCompleteMe and clangd, they work fine, but it seems I'm having trouble with the |
|
@MaskRay I have indeed tried that before too, but then indexing didn't work quite right, I've checked the log and it was indexing much less files in |
Sorry I didn't read your comment carefully. The
But I'd say |
is it right without the |
Read wiki. I use |
I do that because I'm used to specify include locations when using libclang tools, the reason is here: ycm-core/YouCompleteMe#303 (comment). Libclang may have changed that behavior already, I don't know, and I think I will just remove them anyway. But still, I found it strange that with these flags, completion and indexing doesn't work right, try completing |
Ah, I did read, but only understood it now. |
Thanks for the help. Sadly, no vim or neovim general LSP implementation is doing signatureHelp right. There's one libclang plugin that heard my suggestion and implemented it OK: Sadly it's clang specific, and currently I can't even build it. |
I am unclear about the history as I started hacking clang last December. ccls invokes
To explore libclang API, you may experiment with
It can be the case.. I watch clangd development closely and I think both ccls and clang's server-side signatureHelp implementation should be good, but the clients may be at fault. Is you complaint similar to my emacs-lsp/lsp-mode#422 ? |
This should have changed at some point I think. I'm an oldie on clang but has been some time I don't touch the codebase to know when that changed. I've implemented this and committed to clang, which today is used by |
Thank you for rC26670 and its friends! So it seems you may have landed it without a review? I think no one is focusing on libclang now and lots of contribution may go through a really long process... My clang journey started with D41575, when I was still hacking on cquery. I've found libclang (clang-c) quite cumbersome to use:
|
No no, there was a review for sure: https://reviews.llvm.org/D6880. |
I know, there's much stuff in any codebase that's not pretty, and anything clang is no exception :) |
For The implementation is a bit different now in ccls and the optional argument part is split into a separate initialization option:
|
I've just learned of the project and couldn't find whether it supports
compile_flags.txt
likeclangd
does.The text was updated successfully, but these errors were encountered: