Lines Matching full:clang
3 clang-format
6 ``clang-format`` is a tool to format C/C++/... code according to
10 ``clang-format`` can be used for several purposes:
22 Its configuration file is ``.clang-format`` in the root of the kernel tree.
28 another ``.clang-format`` file in a subfolder.
31 Linux distributions for a long time. Search for ``clang-format`` in
33 LLVM/clang binaries or build the source code from:
39 https://clang.llvm.org/docs/ClangFormat.html
41 https://clang.llvm.org/docs/ClangFormatStyleOptions.html
55 clang-format -i kernel/*.[ch]
61 ``clang-format`` features/versions.
63 ``clang-format`` also supports reading unified diffs, so you can review
66 https://clang.llvm.org/docs/ClangFormat.html#script-for-patch-reformatting
68 To avoid ``clang-format`` formatting some portion of a file, you can do::
71 // clang-format off
73 // clang-format on
77 ``clang-format``, specially if you are writing new files or if you are
79 ``clang-format`` versions or not have it available at all. Therefore,
81 at least until we see if ``clang-format`` becomes commonplace.
102 https://clang.llvm.org/docs/ClangFormat.html
107 For this use case, consider using a secondary ``.clang-format``
116 ``clang-format`` is missing support for some things that are common
183 You might want to create another ``.clang-format`` file and use that one