semantic-tag-expand-function

semantic-tag-expand-function is a variable defined in `tag.el'.
Its value is
nil

  • Automatically becomes buffer-local when set.
  • This variable may be risky if used as a file-local variable.

Documentation:
Function used to expand a tag.
It is passed each tag production, and must return a list of tags
derived from it, or nil if it does not need to be expanded.

Languages with compound definitions should use this function to expand
from one compound symbol into several. For example, in C or Java the
following definition is easily parsed into one tag:

int a, b;

This function should take this compound tag and turn it into two tags,
one for A, and the other for B.