Skip to content

Instantly share code, notes, and snippets.

@hgiddens
Created November 23, 2012 00:20
Show Gist options
  • Select an option

  • Save hgiddens/4133425 to your computer and use it in GitHub Desktop.

Select an option

Save hgiddens/4133425 to your computer and use it in GitHub Desktop.
demangle
(defun demangle ()
(interactive)
(let* ((sym (thing-at-point 'symbol)))
(with-temp-buffer
(call-process "c++filt" nil t nil sym)
(backward-delete-char 1)
(message (buffer-string)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment