Clangd on CLion


First of all, CLion is such an excellent product. I have been using Clion and have been developing projects on VSCode recently. I used the Clangd extension on VSCode (as far as I know, CLion also used Clangd), but encountered a problem " In included file: main file cannot be included recursively when building a preamble. clang(pp_including_mainfile_in_preamble)" (see:, but it works fine on CLion.

This makes me very confused. Can someone tell me how CLion solves this problem? Or modify the Clangd configuration?



Please sign in to leave a comment.