Decision algorithm for showing parameter hints

Answered

I installed CLion 2019.2 EAP yesterday.

I like parameter hints, and I'm happy they're in.

However, CLion shows parameter hints for some parameters but not others, and the pattern isn't obvious.

How does CLion decide which parameters get hints, and which do not?

0
2 comments

Hi!

Hints are displayed in the following cases:

  • For function calls, lambdas, constructors, initializer lists, and macro expressions.
  • For argument literals and expressions with more than one operand.
  • For a constructor invoked through emplace_back-like functions.
  • Hints for initializers are not shown when the argument is used as a designated initializer.

More info: https://blog.jetbrains.com/clion/2019/05/clion-starts-2019-2-eap-parameter-hints-go-to-address-code-assistance-for-clangformat/#parameter_name_hints.

0

Of course, you're quite right -- and I had read those patch notes but not absorbed the details.  Sorry for dragging you through this question.

0

Please sign in to leave a comment.