clangd doesn't find hardware_destructive_interference_size #1996
-
Here's a minimal example:
Here's the output of
Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
HighCommander4
Apr 2, 2024
Replies: 1 comment 4 replies
-
I believe this is a feature that requires compiler support, and clang does not support it, i.e this code will not compile with Since clangd uses clang's parser, that means clangd does not support it either. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To clarify, clangd is built on clang's parser and thus always uses clang's parser to parse your code, that's the only thing it can do.
Whether the compiler in the compile command is clang or gcc only makes a fairly minor difference (e.g. it can affect the which standard library headers are used by default).
So, there is no way to get clangd to accept this code without
clang
accepting it.