[clang] [webkit.UncountedLambdaCapturesChecker] Fix a regression that [[noescape]] on a member function no longer works. (PR #126016)

Rashmi Mudduluru via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 6 14:36:59 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()>&);
----------------
t-rasmud wrote:

Should we also have a similar test case for a non-member function?

https://github.com/llvm/llvm-project/pull/126016


More information about the cfe-commits mailing list