mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 09:12:13 -05: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
Notes:
github-actions[bot]
2024-12-10 06:13:49 +00:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/85b87508bf1 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2860
1 changed files with 1 additions and 6 deletions
|
@ -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 a new issue