Skip to content

Commit f0350e1

Browse files
committed
Improve documentation of getPointeeType()
1 parent 40eddf9 commit f0350e1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

clang/include/clang/AST/Type.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2871,8 +2871,15 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
28712871
/// This should never be used when type qualifiers are meaningful.
28722872
const Type *getPointerOrObjCPointerOrArrayElementType() const;
28732873

2874-
/// If this is a pointer, ObjC object pointer, or block
2875-
/// pointer, this returns the respective pointee.
2874+
/// Return the 'pointee type' for any of the following kinds of types,
2875+
/// and an empty QualType otherwise.
2876+
///
2877+
/// - PointerType
2878+
/// - ObjCObjectPointerType
2879+
/// - BlockPointerType
2880+
/// - ReferenceType
2881+
/// - MemberPointerType
2882+
/// - DecayedType
28762883
QualType getPointeeType() const;
28772884

28782885
/// Return the specified type with any "sugar" removed from the type,

0 commit comments

Comments
 (0)