mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
ClangPlugins: Remove confusing hasType check for lambda capture types
This check asserts that templated types will never escape. Which doesn't hold up at all in practice.
This commit is contained in:
parent
2f38c83caf
commit
85b87508bf
|
|
@ -84,12 +84,7 @@ public:
|
|||
unless(hasParent(
|
||||
// <lambda struct>::operator()(...)
|
||||
cxxOperatorCallExpr(has(declRefExpr(to(equalsBoundNode("lambda")))))))))),
|
||||
parmVarDecl(
|
||||
allOf(
|
||||
// It's important that the parameter has a RecordType, as a templated type can never escape its function
|
||||
hasType(cxxRecordDecl()),
|
||||
hasAnnotation("serenity::escaping")))
|
||||
.bind("lambda-param-ref")))),
|
||||
parmVarDecl(hasAnnotation("serenity::escaping")).bind("lambda-param-ref")))),
|
||||
this);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user