================
@@ -748,6 +748,33 @@ ExprResult Parser::TryParseLambdaExpression() {
return ParseLambdaExpressionAfterIntroducer(Intro);
}
+bool Parser::startsLambdaNotMicrosoftAttribute() {
+ // Restricted to CUDA/HIP.
+ if (!getLangOpts().CUDA || Tok.isNot(tok::l_square))
----------------
erichkeane wrote:
This doesn't seem right, why is this cuda specific? How do we handle this for
NON cuda situations? These lambdas aren't really any different than 'normal'
lambdas, right?
SO the fact that we have similar disembiguations to do this in other places, I
feel like this is probably the wrong place/way to do this.
https://github.com/llvm/llvm-project/pull/214247
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits