Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f0350e1

Browse filesBrowse files
committed
Improve documentation of getPointeeType()
1 parent 40eddf9 commit f0350e1
Copy full SHA for f0350e1

File tree

1 file changed

+9
-2
lines changed
Filter options

1 file changed

+9
-2
lines changed

‎clang/include/clang/AST/Type.h

Copy file name to clipboardExpand all lines: clang/include/clang/AST/Type.h
+9-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.