You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using clangd in a project that combines the three dialects of C++ listed in the title. CMake is configured to produce the appropriate compile commands for each source file, but header files do not match one-to-one the source files, as the code is highly templatized, and most headers do not have a corresponding source. Therefore, for each header, clangd uses its heuristic match logic to pick a source file whose compile command will be used as the basis for to compute the compile command for the header. This logic however fails because, although LLVM supports both HIP and CUDA, LLVM does not have the necessary file types for CUDA and HIP headers, nor the logic to map them to their corresponding source file types.