D124866 seem to have had an unintended side effect: noinline on lambdas was no longer accepted.
This fixes the regression and adds a test case for it.
Paths 
  |  Differential  D137251  
[clang][cuda/hip] Allow `__noinline__`  lambdas ClosedPublic Authored by Pierre-vh on Nov 2 2022, 6:42 AM. 
Details Summary D124866 seem to have had an unintended side effect: noinline on lambdas was no longer accepted. This fixes the regression and adds a test case for it. 
Diff Detail 
 Event TimelineComment Actions LGTM in principle. Please wait for @rsmith's OK. 
 Comment Actions Can you also add a release note for the fix? 
 Comment Actions 
 I'm happy to defer to @aaron.ballman on this :) Pierre-vh marked 2 inline comments as done. Comment ActionsComments Not sure if the release note is in the right place though. 
 
 Comment Actions 
 LGTM. Thanks. Comment Actions LGTM aside from some very minor nits. 
 This revision is now accepted and ready to land.Nov 3 2022, 10:31 AM Closed by commit rGc05f1639f7f4: [clang][cuda/hip] Allow `__noinline__`  lambdas (authored by Pierre-vh).  ·  Explain WhyNov 4 2022, 12:33 AM This revision was automatically updated to reflect the committed changes. Pierre-vh marked 3 inline comments as done. 
Revision Contents 
 
 
Diff 473145 clang/docs/ReleaseNotes.rst
 clang/lib/Parse/ParseExprCXX.cpp
 clang/test/CodeGenCUDA/lambda-noinline.cu
 
 clang/test/Parser/lambda-attr.cu
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||