[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
Mon Aug 17 03:13:46 PDT 2026
https://github.com/sylvestre updated https://github.com/llvm/llvm-project/pull/140371
>From bbb017c3ace754e3face3a9a0226fe0450d70caa Mon Sep 17 00:00:00 2001
From: Sylvestre Ledru <sylvestre at debian.org>
Date: Mon, 17 Aug 2026 12:12:33 +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..4d1c3ea1489f9 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 a6a064a0855cd6314239186b8b586598100100ca Mon Sep 17 00:00:00 2001
From: Sylvestre Ledru <sylvestre at debian.org>
Date: Mon, 17 Aug 2026 12:12:34 +0200
Subject: [PATCH 2/2] doc/clang-format: the Mozilla coding style format has
been deprecated
---
clang/docs/ClangFormatStyleOptions.md | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/clang/docs/ClangFormatStyleOptions.md b/clang/docs/ClangFormatStyleOptions.md
index 9b962e6e1e083..3d2ae446f5db1 100644
--- a/clang/docs/ClangFormatStyleOptions.md
+++ b/clang/docs/ClangFormatStyleOptions.md
@@ -154,14 +154,15 @@ the configuration (without a prefix: `Auto`).
A style complying with [Google's C++ style guide](https://google.github.io/styleguide/cppguide.html)
- `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)
- `Microsoft`
A style complying with [Microsoft's style guide](https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference)
- `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