[clang] clang-format: update of the doc wrt the Mozilla coding style (PR #140371)
Sylvestre Ledru via cfe-commits
cfe-commits at lists.llvm.org
Sat May 17 04:13:51 PDT 2025
https://github.com/sylvestre created https://github.com/llvm/llvm-project/pull/140371
+ ride along about an old project
>From 4185396b027ab073b6742dcb3d800c3eda9491df Mon Sep 17 00:00:00 2001
From: Sylvestre Ledru <sylvestre at debian.org>
Date: Sat, 17 May 2025 13:02:29 +0200
Subject: [PATCH 1/2] doc/Clang Related Projects: replace Mozilla DXR by
searchfox
---
clang/www/related.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/clang/www/related.html b/clang/www/related.html
index d45f533677654..4e796feb51ab6 100755
--- a/clang/www/related.html
+++ b/clang/www/related.html
@@ -82,14 +82,14 @@ <h1>Clang Related Projects</h1>
</p>
</dd>
- <dt>DXR</dt>
+ <dt>searchfox</dt>
<dd>
<p>
<b>Site:</b>
- <a href="https://github.com/mozilla/dxr#dxr">https://github.com/mozilla/dxr</a>
+ <a href="https://github.com/mozsearch/mozsearch">https://github.com/mozsearch/mozsearch</a>
</p>
<p>
- DXR is a code search and navigation tool aimed at making sense of large projects like Firefox. It supports full-text and regex searches as well as structural queries like "Find all the callers of this function."
+ Searchfox is Mozilla's successor to DXR'a fast code search and navigation tool designed to help you explore and understand large codebases like Firefox. It offers full-text and regex searches, as well as structural queries such as "Find all the callers of this function."
</p>
</dd>
>From 54f03b0f52489c9d7999dbfdc9ab50ea834a5280 Mon Sep 17 00:00:00 2001
From: Sylvestre Ledru <sylvestre at debian.org>
Date: Sat, 17 May 2025 13:12:18 +0200
Subject: [PATCH 2/2] doc/clang-format: the Mozilla coding style format has
been deprecated
---
clang/docs/ClangFormatStyleOptions.rst | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst
index a4c381bf583b6..6c3a64ebef708 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -163,9 +163,6 @@ the configuration (without a prefix: ``Auto``).
* ``Chromium``
A style complying with `Chromium's style guide
<https://chromium.googlesource.com/chromium/src/+/refs/heads/main/styleguide/styleguide.md>`_
- * ``Mozilla``
- A style complying with `Mozilla's style guide
- <https://firefox-source-docs.mozilla.org/code-quality/coding-style/index.html>`_
* ``WebKit``
A style complying with `WebKit's style guide
<https://www.webkit.org/coding/coding-style.html>`_
@@ -175,6 +172,8 @@ the configuration (without a prefix: ``Auto``).
* ``GNU``
A style complying with the `GNU coding standards
<https://www.gnu.org/prep/standards/standards.html>`_
+ * ``Mozilla``
+ The Mozilla coding style is deprecated upstream and retained for legacy support.
* ``InheritParentConfig``
Not a real style, but allows to use the ``.clang-format`` file from the
parent directory (or its parent if there is none). If there is no parent
More information about the cfe-commits
mailing list