* lisp/cedet/semantic/tag.el (semantic-tag): New type

This commit is contained in:
Stefan Monnier 2024-03-29 15:32:48 -04:00
parent 42322257ba
commit dd3e13469d

View file

@ -349,6 +349,9 @@ If TAG is unlinked, but has a :filename property, then that is used."
;; If an error occurs, then it most certainly is not a tag.
(error nil)))
;; Used in `semantic-utest-ia.el'.
(cl-deftype semantic-tag () `(satisfies semantic-tag-p))
(defsubst semantic-tag-of-class-p (tag class)
"Return non-nil if class of TAG is CLASS."
(eq (semantic-tag-class tag) class))