[clang] 3507959 - [clang-format][doc] Fix format errors.
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 29 22:52:16 PST 2023
Author: Owen Pan
Date: 2023-12-29T22:52:07-08:00
New Revision: 3507959e441ed9470818e7c6ef16d9bbcfe6a999
URL: https://github.com/llvm/llvm-project/commit/3507959e441ed9470818e7c6ef16d9bbcfe6a999
DIFF: https://github.com/llvm/llvm-project/commit/3507959e441ed9470818e7c6ef16d9bbcfe6a999.diff
LOG: [clang-format][doc] Fix format errors.
Added:
Modified:
clang/docs/ClangFormat.rst
Removed:
################################################################################
diff --git a/clang/docs/ClangFormat.rst b/clang/docs/ClangFormat.rst
index 67fdffbd116d8a..158a14af39732e 100644
--- a/clang/docs/ClangFormat.rst
+++ b/clang/docs/ClangFormat.rst
@@ -134,16 +134,17 @@ Available style options are described in :doc:`ClangFormatStyleOptions`.
You can create ``.clang-format-ignore`` files to make ``clang-format`` ignore
certain files. A ``.clang-format-ignore`` file consists of patterns of file path
names. It has the following format:
-- A blank line is skipped.
-- Leading and trailing spaces of a line are trimmed.
-- A line starting with a hash (``#``) is a comment.
-- A non-comment line is a single pattern.
-- The slash (``/``) is used as the directory separator.
-- A pattern is relative to the directory of the ``.clang-format-ignore`` file
-(or the root directory if the pattern starts with a slash).
-- Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of
-2.13.3.
-- A pattern is negated if it starts with a bang (``!``).
+
+* A blank line is skipped.
+* Leading and trailing spaces of a line are trimmed.
+* A line starting with a hash (``#``) is a comment.
+* A non-comment line is a single pattern.
+* The slash (``/``) is used as the directory separator.
+* A pattern is relative to the directory of the ``.clang-format-ignore`` file
+ (or the root directory if the pattern starts with a slash).
+* Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of
+ 2.13.3.
+* A pattern is negated if it starts with a bang (``!``).
To match all files in a directory, use e.g. ``foo/bar/*``. To match all files in
the directory of the ``.clang-format-ignore`` file, use ``*``.
More information about the cfe-commits
mailing list