Function: semantic-tag-components-c-mode
semantic-tag-components-c-mode is a byte-compiled function defined in
c.el.gz.
Signature
(semantic-tag-components-c-mode TAG)
Documentation
Return components for TAG.
Override semantic-tag-components in c-mode buffers.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/bovine/c.el.gz
(define-mode-local-override semantic-tag-components c-mode (tag)
"Return components for TAG."
(if (and (eq (semantic-tag-class tag) 'type)
(string= (semantic-tag-type tag) "typedef"))
;; A typedef can contain a parent who has positional children,
;; but that parent will not have a position. Do this funny hack
;; to make sure we can apply overlays properly.
(let ((sc (semantic-tag-get-attribute tag :typedef)))
(when (semantic-tag-p sc) (semantic-tag-components sc)))
(semantic-tag-components-default tag)))