[clang] [SYCL] AST support for SYCL kernel entry point functions. (PR #122379)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 10 09:50:04 PST 2025


================
@@ -1793,6 +1794,16 @@ void ASTDeclReader::VisitBlockDecl(BlockDecl *BD) {
   BD->setCaptures(Reader.getContext(), captures, capturesCXXThis);
 }
 
+void ASTDeclReader::VisitOutlinedFunctionDecl(OutlinedFunctionDecl *D) {
+  // NumParams is deserialized by OutlinedFunctionDecl::CreateDeserialized().
+  VisitDecl(D);
+  D->setNothrow(Record.readInt() != 0);
+  for (unsigned I = 0; I < D->NumParams; ++I) {
----------------
erichkeane wrote:

No curleys for 1 liners.

https://github.com/llvm/llvm-project/pull/122379


More information about the cfe-commits mailing list