CLion
 
Get CLion
You are viewing the documentation for an earlier version of CLion.

Parameter hints

Last modified: 24 September 2021

Settings / Preferences | Editor | Inlay Hints | C/C++/Objective-C

Default state: enabled

Clangd -based engine

Parameter hints show the names of function parameters for the passed arguments. CLion displays them in the editor inlined with your code to improve its readability:

parameter hints

Parameter hints can help you understand a function call without exploring the function signature (which you can do with the Parameter Info tooltip or by navigating to the function declaration).

Parameter hints are displayed for argument literals and expressions with more than one operand: function calls, lambdas, initializer lists, macro expressions, and constructors (including the constructors invoked through emplace_back -like functions). Hints for initializers are not shown when the argument is used as a designated initializer.

Arguments passed by non-const reference show the hint &: to indicate the fact they can be modified:

parameter hints for non-const references