Skip to content

Commit

Permalink
cursor: add clang_Cursor_getReceiverType
Browse files Browse the repository at this point in the history
  • Loading branch information
sbinet committed May 22, 2014
1 parent e0159c7 commit 5a301b7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cursor.go
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,14 @@ func (c Cursor) IsDynamicCall() bool {
return false
}

/**
* \brief Given a cursor pointing to an ObjC message, returns the CXType of the
* receiver.
*/
func (c Cursor) ReceiverType() Type {
return Type{C.clang_Cursor_getReceiverType(c.c)}
}

/**
* \brief Given a cursor that represents a declaration, return the associated
* comment text, including comment markers.
Expand Down

0 comments on commit 5a301b7

Please sign in to comment.