cor3ntin wrote:

> Ah, I think you’re confusing two functions there: 
> `getPointeeOrArrayElementType()` is being renamed to 
> `getPointerOrObjCPointerOrArrayElementType()`, not 
> `getPointerOrArrayElementType()`.

Not confused. renaming `getPointeeFoo` to `getPointerBar` does not seem 
correct, especially as `getPointeeOrArrayElementType` does indeed return a 
pointee.

And my other point, is that there should not be a use case for "If T is a 
pointer give me the pointee, otherwise give me T" - which is why I'm suggesting 
functions returning a pointee should not accept a non-pointer type


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

Reply via email to