[clang] [clang][SYCL] Diagnose reference kernel arguments (PR #192957)
Alexey Bader via cfe-commits
cfe-commits at lists.llvm.org
Wed May 27 09:47:23 PDT 2026
================
@@ -665,6 +666,99 @@ OutlinedFunctionDecl *BuildSYCLKernelEntryPointOutline(Sema &SemaRef,
return OFD;
}
+class KernelArgsChecker : public ConstSubobjectVisitor<KernelArgsChecker> {
----------------
bader wrote:
Pedantic note: I think we need to replace "argument" with "parameter" everywhere in this PR (i.e. title, tests and code).
```suggestion
class KernelParamsChecker : public ConstSubobjectVisitor<KernelParamsChecker> {
```
https://github.com/llvm/llvm-project/pull/192957
More information about the cfe-commits
mailing list