[Lldb-commits] [clang] [clang-tools-extra] [lldb] [Clang] [NFC] Rename `isAnyPointerType()` and `getPointeeOrArrayElementType()`. (PR #122938)

via lldb-commits lldb-commits at lists.llvm.org
Tue Jan 14 10:03:21 PST 2025


Sirraide wrote:

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

Ah, I see, in that case the only other name I could think of would be something like `getPointerOrObjCPointerPointeeOrArrayElementType`. I personally was reading `getPointerOrObjCPointerOrArrayElementType()` as ‘get the element type of a pointer, objc pointer, or array’.

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


More information about the lldb-commits mailing list