pacman -S mingw-w64-x86_64-mpc
C:\msys64\clang64\bin>C:\msys64\mingw64\bin\clangd.exe --version
C:\msys64\mingw64\bin\gcc.exe --version
Somewhere there is a setting for which clangd is used by Code::Blocks check that is correct.
Edit: Best guess "settings->Editor"
To devs: Feature request that the setting of "$(TARGET_COMPILER_DIR)\bin\clangd.exe" works for clangd plugin; the clang plugin already has the code; but, the value of $(TARGET_COMPILER_DIR) is not know at the point in time; might not be possible for it to be known
Edit2: Looks like code is too complex for me to understand ClgdCompletion::OnAppStartupDone
Tim S.
Somewhere there is a setting for which clangd is used by Code::Blocks check that is correct.
Edit: Best guess "settings->Editor"
To devs: Feature request that the setting of "$(TARGET_COMPILER_DIR)\bin\clangd.exe" works for clangd plugin; the clang plugin already has the code; but, the value of $(TARGET_COMPILER_DIR) is not know at the point in time; might not be possible for it to be known
Edit2: Looks like code is too complex for me to understand ClgdCompletion::OnAppStartupDone
Tim S.
I'll look to see if this is workable.
I vaguely remember that I tried this, but the needed macros were unknown at project load which is where the clangd.exe needs to be set.
But I'll look at it again anyway.
[Edit: A more important related bug is it fails to find the clangd.exe in the MINGW installation folder of an CB installed with Mingw compiler.
[Edit: A more important related bug is it fails to find the clangd.exe in the MINGW installation folder of an CB installed with Mingw compiler.
How did clangd.exe get installed with MINGW?
None of my Mingw folders contains clang.exe along with any of it's resources.
Do you mean the ...\msys64_18.1.8\mingw64\ folder? (or similar versions)?
$(CodeBlocks)\MinGW\bin\clangd.exe
[Edit: A more important related bug is it fails to find the clangd.exe in the MINGW installation folder of an CB installed with Mingw compiler.
How did clangd.exe get installed with MINGW?
None of my Mingw folders contains clang.exe along with any of it's resources.
Do you mean the ...\msys64_18.1.8\mingw64\ folder? (or similar versions)?
On Windows using the CB25.03 installer with MINGW GCC compiler it also has the clangd.exe and other clang stuff installed.
The auto detection does not find it.
Edit:Code$(CodeBlocks)\MinGW\bin\clangd.exe
Tim S.
[Edit: A more important related bug is it fails to find the clangd.exe in the MINGW installation folder of an CB installed with Mingw compiler.
How did clangd.exe get installed with MINGW?
None of my Mingw folders contains clang.exe along with any of it's resources.
Do you mean the ...\msys64_18.1.8\mingw64\ folder? (or similar versions)?
On Windows using the CB25.03 installer with MINGW GCC compiler it also has the clangd.exe and other clang stuff installed.
The auto detection does not find it.
Edit:Code$(CodeBlocks)\MinGW\bin\clangd.exe
Tim S.
The installer does not install a clangd.exe that supports Mingw.
The clangd included in those binaries is for the clang compiler only.
Using the clangd.exe included in those binaries with Mingw will cause spurious (incorrect) error messages.
If you're using Mingw, use the Msys2 Mingw64/bin/clangd.exe instead.
Do not mix the clang compiler clangd with the Mingw clangd.