Open VoxSciurorum opened 1 year ago
It seems like this issue might be related to another issue that tools, such as clangd
, don't handle the cilk_reducer
keyword properly. Tthe problem stems from the fact that the cilk_reducer
keyword and its arguments aren't really represented in the AST. Because most of clangd
's functionality relies on the AST, this means that clangd
fails to recognize the cilk_reducer
keyword and its arguments. As a result, functions in modern IDEs, like VSCode, that use clangd
don't work correctly with cilk_reducer
.
It would be better to add a proper representation of cilk_reducer
types to the AST, possibly based on how templated C++ types are represented in the AST. Such a change should fix clangd
s handling of cilk_reducer
and may fix these spurious warnings as well.
The compiler incorrectly says static reducer callbacks used inside a template have not been emitted.