Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ function signature hint in Emacs?

Tags:

c++

emacs

Can we let emacs display the function signatures and overloading candidates when typing a function name and the parameter list? This will be very helpful.

like image 314
szli Avatar asked Oct 20 '22 16:10

szli


1 Answers

This can be done with CEDET (built in) together with function-args:

function-args

Some features:

  1. fa-show shows function arguments inline, allowing to switch between overloads.
  2. fa-jump jumps to an overloaded candidate (when there are many).
  3. moo-complete gives better completion sometimes, and uses helm which is an advantage for speed.
  4. moo-propose-virtual uses helm to instantly fill in a virtual function signature in an overloaded class.
  5. moo-propose-override does so for any parent function (not just virtual).
like image 192
abo-abo Avatar answered Oct 24 '22 11:10

abo-abo