Function: semantic-c-dereference-member-of

semantic-c-dereference-member-of is a byte-compiled function defined in c.el.gz.

Signature

(semantic-c-dereference-member-of TYPE SCOPE &optional TYPE-DECLARATION)

Documentation

Dereference through the -> operator of TYPE.

Uses the return type of the -> operator if it is contained in TYPE. SCOPE is the current local scope to perform searches in. TYPE-DECLARATION is passed through.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/bovine/c.el.gz
;;; Patch here by "Raf" for instantiating templates.
(defun semantic-c-dereference-member-of (type _scope &optional type-declaration)
  "Dereference through the `->' operator of TYPE.
Uses the return type of the `->' operator if it is contained in TYPE.
SCOPE is the current local scope to perform searches in.
TYPE-DECLARATION is passed through."
  (if semantic-c-member-of-autocast
      (let ((operator (car (semantic-find-tags-by-name "->" (semantic-analyze-scoped-type-parts type)))))
        (if operator
            (list (semantic-tag-get-attribute operator :type) (semantic-tag-get-attribute operator :type))
          (list type type-declaration)))
    (list type type-declaration)))