Skip to content

clangd doesn't find hardware_destructive_interference_size #1996

Answered by HighCommander4
tarun-t asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@tarun-t
Comment options

@HighCommander4
Comment options

Answer selected by tarun-t
@HighCommander4
Comment options

@tarun-t
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants