By default, CLion analyses the code in all open files and highlights the detected code issues. You can fix most of the issues immediately by applying quick-fixes.
Place the caret at the highlighted piece of code and press Alt+Enter:
You can also hover the mouse over the highlighted element and apply a quick-fix from the inspection popup:
For some inspections, you can open a preview by pressing Ctrl+Shift+I.
To display the source code of an issue in the editor, when it is selected in the Problems tool window, toggle the Navigate with Single Click button.
If you find that some of the reported issues are minor or not helpful to you, you can ignore them either by disabling the corresponding inspection or by suppressing it in a specific piece of code.