Fix the assertion failure in TrivialFunctionAnalysis::isTrivialImpl with a coroutine body by caching the result with WithCachedResult.
12 lines
253 B
C++
12 lines
253 B
C++
// RUN: %clang_analyze_cc1 -analyzer-checker=webkit.UncountedLambdaCapturesChecker -std=c++20 -verify %s
|
|
// expected-no-diagnostics
|
|
|
|
template<typename Arg>
|
|
void foo(Arg&& arg)
|
|
{
|
|
[&]{
|
|
co_await [&](auto&&... args) {
|
|
}(arg);
|
|
}();
|
|
}
|