How : Language Server Clang && C++ 17
Posted: Thu Apr 02, 2020 6:26 pm
Hi!
How can i set to clangd, that i`m using C++ 17?
Because, now it highlighting std::filesystem in code, but this code compiled w/o errors (with -std=c++17 flag).
Env info:
CodeLite 14.0
Windows 10 x64
MinGW 9.3 (from MSYS2)
Clangd 9.0.1 (from MSYS2)
Compile_flags.txt for project (maked by CodeLite):
-IC:\msys64\mingw64\include\c++\9.3.0
-IC:\msys64\mingw64\include\c++\9.3.0\x86_64-w64-mingw32
-IC:\msys64\mingw64\include\c++\9.3.0\backward
-IC:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\9.3.0\include
-IC:\msys64\mingw64\include
-IC:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\9.3.0\include-fixed
-IC:\msys64\mingw64\x86_64-w64-mingw32\include
-ID:\IAP20\calc_kernel\IAP_DLL
-target
x86_64-pc-windows-gnu
How can i set to clangd, that i`m using C++ 17?
Because, now it highlighting std::filesystem in code, but this code compiled w/o errors (with -std=c++17 flag).
Env info:
CodeLite 14.0
Windows 10 x64
MinGW 9.3 (from MSYS2)
Clangd 9.0.1 (from MSYS2)
Compile_flags.txt for project (maked by CodeLite):
-IC:\msys64\mingw64\include\c++\9.3.0
-IC:\msys64\mingw64\include\c++\9.3.0\x86_64-w64-mingw32
-IC:\msys64\mingw64\include\c++\9.3.0\backward
-IC:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\9.3.0\include
-IC:\msys64\mingw64\include
-IC:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\9.3.0\include-fixed
-IC:\msys64\mingw64\x86_64-w64-mingw32\include
-ID:\IAP20\calc_kernel\IAP_DLL
-target
x86_64-pc-windows-gnu