Nathan Ridge

Results 1186 comments of Nathan Ridge

> I tried to get it to work by searching a variable in entire folder. I'm not sure what you mean by that. > But I am getting error "Failed...

I notice the compile command contains `-std:c++latest`, I suspect that may be the issue, as clangd doesn't support "latest" as a standard version name (https://github.com/clangd/clangd/issues/527). Can you try explicitly specifying...

Note that at this pre-release stage, clang's flag name for what is expected to be C++26 is `c++2c` (and more importantly, of course not all C++26 features are implemented yet)....

> Hm... I found out that it doesn't even compile either with `-std=c++23` or `-std:c++23` only with `-std:c++latest` Are you still referring to the code example in the bug description,...

> If you try to add something like `std::println` it will be highlighted as an error. Could you post a specific code example where you get the error, and associated...

In your example, you still have `-std:c++latest` in the `compile_commands.json`.

This is the relevant part of the log: ``` I[10:53:55.846] ASTWorker building file d:\Projects\cxx\main.cpp version 14 with command [D:/Projects/cxx/build/release] "C:\\Program Files\\LLVM\\bin\\clang-cl.exe" --driver-mode=cl /nologo /DWIN32 /D_WINDOWS /EHsc /O2 /Ob2 /DNDEBUG -MD...

> I think this problem is clang-cl specific This is just a guess, but the flag format might be `/std:c++23` for `clang-cl`?

> With other flags such as `-std:c++23`, `-std=c++23` and `/std:c++23` it still doesn't work and moreover it will not compile if I specify it explicitly through CMAKE_CXX_FLAGS. Can you try...

This line in the log: > V[11:23:11.123] Ignored diagnostic. /std=c++23: 'linker' input unused Suggests `/std=c++23` is not recognized. I believe it needs to be `/std:c++23`. (My mistake, I did originally...