If you turnClangFormatonin CLion settings, then CLion will use it not only for formatting the code or the reformat action, but also for indenting after Enter or Backspace are pressed. This makes the indentation more accurate. Besides, if you enable ClangFormat on the project without .clang-...