I like YouCompleteMe, but it apparently has a major drawback for C/C++, which is no static analysis. Moreover, it disables Syntastic, which does provide static analysis, and they are generally incompatible. My goal is to be able to configure C++ checkers through clang-tidy, which is supported through clangd, the YCM backend I'm using.
So far, I've found that YCM has a
--clang-tidy install option, but it's used by developers only, and people always seem to say "it's not useful for normal users". It's not clear to me what it's doing.
Still, others have said that YCM can do everything Syntastic does, which is why you don't need both. How can that be true if you can't use checkers? So I thought maybe it was already available, but my project's
.clang-tidy file is ignored, so maybe not.
Finally, I wondered if I could pass arguments directly to clangd, which has a
--clang-tidy argument to enable those checks. I haven't found something like that yet, and I'm not sure if YCM will support the output even if it does work. Here's something close but I haven't checked yet.
So, how can I use clang-tidy with YouCompleteMe, or at least, how can I use c++ checkers like CppCoreGuidelines with it?