Emacs 29 with built-in eglot + flymake support complains about lines like this one
​
const uint32\_t idx = blockIdx.x \* blockDim.x + threadIdx.x;
since it does not know about the default build-in vars of cuda.
​
Is there a way to make either eglot recognize those or make flymake ignore them?
My config related to eglot reads like this
(with-eval-after-load 'eglot
(add-to-list 'eglot-server-programs
'((c-mode c++-mode cuda-mode)
. ("clangd-15"
"-j=8"
"--log=error"
"--malloc-trim"
"--background-index"
"--clang-tidy"
"--cross-file-rename"
"--completion-style=detailed"
"--pch-storage=memory"
"--header-insertion=never"
"--header-insertion-decorators=0"))))