================
@@ -44,6 +43,12 @@ inline Target* uncheckedDowncast(Source* source)
     return static_cast<Target*>(source);
 }
 
+template<typename Target, typename Source>
+Target* [[clang::annotate_type("webkit.pointerconversion")]] 
newCastFunction(Source*);
----------------
ziqingluo-90 wrote:

If this function is a member function, will you accidentally take the implicit 
`this` object as the original argument?

https://github.com/llvm/llvm-project/pull/141277
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to