Lines Matching +full:debian +full:- +full:clang
24 ------------
26 We use clang-format to format source code consistently. The
27 clang-format configuration file .clang-format is located at the root
28 directory. Since clang-format produces slightly different results
29 between versions, we currently use clang-format-14.
32 pre-commit hook to check coding style of the changes you introduced.
33 The pre-commit file is located at the root directory. Copy it under
34 .git/hooks and make sure that it is executable. The pre-commit script
35 uses clang-format-diff.py to detect any style errors. If it is not in
37 clang-format-diff-14 in debian), either add it to PATH variable or add
40 For emacs users, integrating clang-format to emacs is very easy.
41 clang-format.el should come with clang distribution. If it is not
43 <https://github.com/llvm/llvm-project/blob/main/clang/tools/clang-format/clang-format.el>`_.
46 .. code-block:: lisp
50 (load "/<path/to>/clang-format.el")
51 (add-hook 'c-mode-common-hook
52 (function (lambda () (local-set-key (kbd "TAB")
53 'clang-format-region))))
56 http://clang.llvm.org/docs/ClangFormat.html.