[llvm] [libcxx] Add pre-commit hooks and git config for libc++ & git-clang-format. (PR #73798)
Mark de Wever via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 9 04:43:31 PST 2023
================
@@ -85,6 +85,47 @@ Other tips are:
self-contained sub-tasks.
+Setting Up and Formatting for Contributions to libc++
+=====================================================
+
+To ensure code consistency and avoid common formatting issues, it's recommended to use provided scripts to setup and
+format your libc++ changes. You can use ``install-formatting-hooks.sh`` and ``pre-commit-formatting-hook.sh`` scripts
+provided in the ``libcxx/utils/formatting/`` directory. Here is the guide to use these scripts:
+
+Setting Up the Formatting Hooks
+-------------------------------
+
+Run the ``install-formatting-hooks.sh`` script. This will check if ``git-clang-format`` is installed in your system,
----------------
mordante wrote:
Does this work on Windows too?
https://github.com/llvm/llvm-project/pull/73798
More information about the llvm-commits
mailing list