The following code demonstrates the direct use of
semantic for jumping to tags.
Make sure you configured
The following code displays the tag in another buffer.
You can adapt the code to jump to the tag if you really want that.
There should already exist something like that. But, I did not find it.
(defun semantic-display-tag (&optional pt)
"Display tag at point."
(unless pt (setq pt (point)))
(let (analyze tag buf loc start pt)
(when (and (setq analyze (semantic-analyze-current-context pt))
(setq tag (semantic-analyze-interesting-tag analyze))
(setq buf (semantic-tag-buffer tag))
(setq start (semantic-tag-start tag)))
(with-selected-window (display-buffer buf #'display-buffer-pop-up-window)
(global-set-key (kbd "C-c , d") #'semantic-display-tag)
(easy-menu-add-item cedet-menu-map '("Navigate Tags") ["Display Tag" semantic-display-tag (semantic-active-p)] 'semantic-complete-jump-local)