Function: semantic-format-tag-name-default
semantic-format-tag-name-default is a byte-compiled function defined
in format.el.gz.
Signature
(semantic-format-tag-name-default TAG &optional PARENT COLOR)
Documentation
Return an abbreviated string describing TAG.
Optional argument PARENT is the parent type if TAG is a detail. Optional argument COLOR means highlight the prototype with font-lock colors.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/format.el.gz
(defun semantic-format-tag-name-default (tag &optional _parent color)
"Return an abbreviated string describing TAG.
Optional argument PARENT is the parent type if TAG is a detail.
Optional argument COLOR means highlight the prototype with font-lock colors."
(let ((name (semantic-tag-name tag))
(destructor
(if (eq (semantic-tag-class tag) 'function)
(semantic-tag-function-destructor-p tag))))
(when destructor
(setq name (concat "~" name)))
(if color
(setq name (semantic--format-colorize-text name (semantic-tag-class tag))))
name))