Why does clangd always choose its built-in headers for some of the headers? #1969
-
I have found that for some headers like My compile flags(specified through the "clangd.fallbackFlags": [
"-Weverything",
"-Wno-used-but-marked-unused",
"-Wno-declaration-after-statement",
"-Wno-vla",
"-Wno-missing-prototypes",
"-Wno-c++98-compat",
"-Wno-reserved-macro-identifier",
"-Wno-padded",
"-Wno-unsafe-buffer-usage",
"-Wno-empty-translation-unit",
"-target",
"x86_64-w64-windows-gnu",
"-xc",
"-std=c17"
] |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, this is expected. Headers in the built-in header directory are closely coupled to the compiler front-end, such that clang's built-in headers need to be used when parsing a file with the clang front-end. |
Beta Was this translation helpful? Give feedback.
Yes, this is expected. Headers in the built-in header directory are closely coupled to the compiler front-end, such that clang's built-in headers need to be used when parsing a file with the clang front-end.