Type hints for C/C++
To increase code readability, CLion provides type hints in the editor inlined with your code. For example, type hints are shown for deduced types:
![Type hints for deduced types Type hints for deduced types](https://resources.jetbrains.com/help/img/idea/2024.1/cl_typehints_deduced_types.png)
Also, the hints are present for auto
variables and structured bindings:
![Type hints for auto variables and structured bindings Type hints for auto variables and structured bindings](https://resources.jetbrains.com/help/img/idea/2024.1/cl_typehints_structuredbindings.png)
Another example is lambda return types:
![Type hints for lambda return types Type hints for lambda return types](https://resources.jetbrains.com/help/img/idea/2024.1/cl_typehints_lambdas.png)
Watch this video to learn more about parameter hints and type hints:
Toggle type hints
Type hints are enabled by default. To hide them, use one of the following options:
Go to C/C++ checkbox to hide all the type hints or a particular checkbox to hide only some of them.
and clear theIn the editor, right-click a hint and select the option from the context menu:
Last modified: 26 May 2024