-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Labels
Description
I use clice on C source code. Clice warns in the editor "treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated.". And the file is treated as C++ source code, for example I cannot assign T * to void * without a cast.
log:
2025-10-20T18:15:07.549 helix_lsp::transport [ERROR] clice err <- "[2025-10-20 10:15:07.549] [INFO] Start building PCH for /tmp/test-clice/a.c, command: [ clang++ -std=c++20 -nostdlibinc -I /usr/include/c++/15 -I /usr/include/c++/15/x86_64-redhat-linux -I /usr/include/c++/15/backward -I /usr/lib/clang/20/include -I /usr/local/include -I /usr/include -resource-dir=/home/ykpcx/clice/lib/clang/20/ /tmp/test-clice/a.c]\n"
2025-10-20T18:15:07.552 helix_lsp::transport [ERROR] clice err <- "[2025-10-20 10:15:07.552] [WARN] Building PCH fails for /tmp/test-clice/a.c, Because: Fail to build PCH or PCM, error occurs in compilation.\n"
2025-10-20T18:15:07.552 helix_lsp::transport [ERROR] clice err <- "[2025-10-20 10:15:07.552] [WARN] treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated\n"
Reactions are currently unavailable