Function: c-add-type
c-add-type is a byte-compiled function defined in cc-engine.el.gz.
Signature
(c-add-type FROM TO)
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/cc-engine.el.gz
(defun c-add-type (from to)
;; Add the given region as a type in `c-found-types'. Also perform the
;; actions of `c-add-type-1'. If the region is or overlaps an identifier
;; which might be being typed in, don't record it. This is tested by
;; checking `c-new-id-start' and `c-new-id-end'. That's done to avoid
;; adding all prefixes of a type as it's being entered and font locked.
;; This is a bit rough and ready, but now covers adding characters into the
;; middle of an identifier.
;;
;; This function might do hidden buffer changes.
(if (and c-new-id-start c-new-id-end
(<= from c-new-id-end) (>= to c-new-id-start))
(setq c-new-id-is-type t)
(c-add-type-1 from to)))