This revision was automatically updated to reflect the committed changes. Closed by commit rG9982d48a92be: Updates to the 'CLion Integration' section in ClangFormat docs (authored by ilya-biryukov). Herald added a project: clang. Herald added a subscriber: cfe-commits.
Changed prior to commit: https://reviews.llvm.org/D80721?vs=269207&id=269275#toc Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D80721/new/ https://reviews.llvm.org/D80721 Files: clang/docs/ClangFormat.rst Index: clang/docs/ClangFormat.rst =================================================================== --- clang/docs/ClangFormat.rst +++ clang/docs/ClangFormat.rst @@ -176,13 +176,14 @@ ================= :program:`clang-format` is integrated into `CLion <https://www.jetbrains -.com/clion/>`_ as an alternative code formatter. It is disabled by default and -can be turned on in Settings/Preferences | Editor | Code Style. - -If :program:`clang-format` support is enabled, CLion detects config files when -opening a project and suggests overriding the current IDE settings. Code style -rules from the ``.clang-format`` files are then applied automatically to all -editor actions, including auto-completion, code generation, and refactorings. +.com/clion/>`_ as an alternative code formatter. CLion turns it on +automatically when there is a ``.clang-format`` file under the project root. +Code style rules are applied as you type, including indentation, +auto-completion, code generation, and refactorings. + +:program:`clang-format` can also be enabled without a ``.clang-format`` file. +In this case, CLion prompts you to create one based on the current IDE settings +or the default LLVM style. Visual Studio Integration
Index: clang/docs/ClangFormat.rst =================================================================== --- clang/docs/ClangFormat.rst +++ clang/docs/ClangFormat.rst @@ -176,13 +176,14 @@ ================= :program:`clang-format` is integrated into `CLion <https://www.jetbrains -.com/clion/>`_ as an alternative code formatter. It is disabled by default and -can be turned on in Settings/Preferences | Editor | Code Style. - -If :program:`clang-format` support is enabled, CLion detects config files when -opening a project and suggests overriding the current IDE settings. Code style -rules from the ``.clang-format`` files are then applied automatically to all -editor actions, including auto-completion, code generation, and refactorings. +.com/clion/>`_ as an alternative code formatter. CLion turns it on +automatically when there is a ``.clang-format`` file under the project root. +Code style rules are applied as you type, including indentation, +auto-completion, code generation, and refactorings. + +:program:`clang-format` can also be enabled without a ``.clang-format`` file. +In this case, CLion prompts you to create one based on the current IDE settings +or the default LLVM style. Visual Studio Integration
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits