Function: semantic-c--instantiate-template

semantic-c--instantiate-template is a byte-compiled function defined in c.el.gz.

Signature

(semantic-c--instantiate-template TAG DEF-LIST SPEC-LIST)

Documentation

Replace TAG name according to template specification.

DEF-LIST is the template information. SPEC-LIST is the template specifier of the datatype instantiated.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/bovine/c.el.gz
(defun semantic-c--instantiate-template (tag def-list spec-list)
  "Replace TAG name according to template specification.
DEF-LIST is the template information.
SPEC-LIST is the template specifier of the datatype instantiated."
  (when (and (car def-list) (car spec-list))

    (when (and (string= (semantic-tag-type (car def-list)) "class")
               (string= (semantic-tag-name tag) (semantic-tag-name (car def-list))))
      (semantic-tag-set-name tag (semantic-tag-name (car spec-list))))

    (semantic-c--instantiate-template tag (cdr def-list) (cdr spec-list))))