[clang] [webkit.UncountedLambdaCapturesChecker] Fix a regression that [[noescape]] on a member function no longer works. (PR #126016)
Ryosuke Niwa via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 6 15:06:45 PST 2025
================
@@ -63,6 +63,18 @@ template<typename Out, typename... In> Function<Out(In...)> adopt(Detail::Callab
return Function<Out(In...)>(impl, Function<Out(In...)>::Adopt);
}
+template <typename KeyType, typename ValueType>
+class HashMap {
+public:
+ HashMap();
+ HashMap([[clang::noescape]] const Function<ValueType()>&);
----------------
rniwa wrote:
A good point! Added a test case for static function & non-member function.
https://github.com/llvm/llvm-project/pull/126016
More information about the cfe-commits
mailing list