Skip to content

Commit

Permalink
Improve documentation of getPointeeType()
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirraide committed Jan 13, 2025
1 parent 40eddf9 commit f0350e1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions clang/include/clang/AST/Type.h
Original file line number Diff line number Diff line change
Expand Up @@ -2871,8 +2871,15 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
/// This should never be used when type qualifiers are meaningful.
const Type *getPointerOrObjCPointerOrArrayElementType() const;

/// If this is a pointer, ObjC object pointer, or block
/// pointer, this returns the respective pointee.
/// Return the 'pointee type' for any of the following kinds of types,
/// and an empty QualType otherwise.
///
/// - PointerType
/// - ObjCObjectPointerType
/// - BlockPointerType
/// - ReferenceType
/// - MemberPointerType
/// - DecayedType
QualType getPointeeType() const;

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

0 comments on commit f0350e1

Please sign in to comment.