📅  最后修改于: 2022-03-11 14:59:43.241000             🧑  作者: Mango
1) Open Clion
2) File -> Settings -> Languages & Frameworks -> C/C++ -> Clangd
3) Append ",--target=riscv32" to the end of clangd diagnostics options.