Julian Schmidt
Julian Schmidt
Note that both options are only available with ninja, not with make (linked docs + ccmake information for the variables)
I let it run for a few minutes and didn't observe any crashes (on a release build though). However, I did find an issue with macros: ```c++ int sink(int); #define...
Stacktrace from a debug build: ``` clangd: /llvm-project/llvm/include/llvm/Support/Casting.h:109: static bool llvm::isa_impl_cl::doit(const From *) [To = clang::NonTypeTemplateParmDecl, From = const clang::NamedDecl *]: Assertion `Val && "isa used on a null pointer"'...
> One option would be to apply fit() to all rows, even when they are not complete. I think that would be best
This has been fixed by llvm/llvm-project#76315 which is included in LLVM 18.
I think the best way to detect format strings is to check if they are (used in a place where they are converted to) a `basic_format_string` (and its specializations).
Could you please try `--compile-commands-dir /home/dym/code/torch-ff/Torch-FF/cc/build/`, i.e., without the `compile_commands.json`? `-dir` sounds like clangd is expecting a directory, not a file path. That is how I set my compile_commands locally.
Given your posted `compile_commands.json` and `I[22:52:06.308] Compile command from CDB is: /opt/cuda/bin/nvcc -DUSE_C10D_GLOO -DUSE_C10D_NCCL -DUSE_DISTRIBUTED -DUSE_RPC -DUSE_TENSORPIPE -DONNX_NAMESPACE=onnx_c2 -g -G -g -D_GLIBCXX_USE_CXX11_ABI=0 -c -std=c++17 -resource-dir=/usr/lib/clang/16 -- /home/dym/code/torch-ff/Torch-FF/cc/from-torch.cu`, it looks like...
The release notes for each LLVM Release, that includes clangd, can be found here: https://releases.llvm.org/. Here is an example from 18.1.0: https://releases.llvm.org/18.1.0/tools/clang/tools/extra/docs/ReleaseNotes.html#improvements-to-clangd, and here are the release notes of trunk,...
```mermaid graph TD include-cleaner -- IWYU pragma --> clangd include-cleaner -- IWYU pragma --> clang_tidy clang_tidy -- NOLINT --> clangd ``` But you can use IWYU pragmas: https://clangd.llvm.org/design/include-cleaner#iwyu-pragmas