szli
szli

Reputation: 39099

C++ function signature hint in 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.

Upvotes: 5

Views: 1427

Answers (1)

abo-abo
abo-abo

Reputation: 20342

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).

Upvotes: 3

Related Questions