Nika Layzell
266ce1ac80
Bug 2045015 - Remove inaccurate note about <concepts> from docs, r=cpeterson
...
Differential Revision: https://phabricator.services.mozilla.com/D304768
2026-06-10 22:15:18 +00:00
Sylvestre Ledru
a2ce5437ce
Bug 2024589 - doc: use the :searchfox: macro r=asuth,perftest-reviewers,necko-reviewers,mozperftest-reviewers,geckoview-reviewers,extension-reviewers,credential-management-reviewers,search-reviewers,releng-reviewers,places-reviewers,profiler-reviewers,win-reviewers,omc-reviewers,urlbar-reviewers,permissions-reviewers,core-sessionstore-reviewers,browser-installer-reviewers,layout-reviewers,dom-worker-reviewers,ai-platform-reviewers,niklas,sthompson,janerik,bhearsum,valentin,dshin,sparky,scunnane,canaltinova,hanna_a,handyman,ahal,farre,jteow,emz,nrishel,ohall,dimi,robwu,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D288640
2026-04-30 13:28:53 +00:00
Sylvestre Ledru
62b1ca8d05
Bug 2024589 - adjust the code: searchfox.org/mozilla-central is now redirecting to searchfox.org/firefox-main/ r=asuth,perftest-reviewers,necko-reviewers,jgraham,webcompat-reviewers,mozperftest-reviewers,geckoview-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,taskgraph-reviewers,releng-reviewers,desktop-theme-reviewers,win-reviewers,translations-reviewers,omc-reviewers,firefox-desktop-core-reviewers ,home-newtab-reviewers,core-sessionstore-reviewers,browser-installer-reviewers,profiles-reviewers,dom-worker-reviewers,geckodriver-reviewers,ai-platform-reviewers,Sasha,niklas,manuel,janerik,bhearsum,valentin,twisniewski,nchevobbe,emcminn,webrtc-reviewers,mjf,handyman,mconley,mossop,ahal,sparky,nrishel,robwu,ohall,dimi,hjones
...
Differential Revision: https://phabricator.services.mozilla.com/D288623
2026-04-30 13:28:49 +00:00
Chris Peterson
b6c496bd20
Bug 2033985 - Move USING_ENUM macro into MFBT so it can be used in more code. r=jld,sergesanspaille,spidermonkey-reviewers,anba
...
1. Move js/src/builtin/intl/UsingEnum.h to mfbt/UsingEnum.h.
2. Rename USING_ENUM to MOZ_USING_ENUM.
3. Since few developers will be using GCC locally, they may forget to list all of the enum's enumerator values and only realize they broke the GCC build after their patch is backed out of autoland. To catch this error sooner, use the GCC macro in DEBUG builds on all platforms.
Differential Revision: https://phabricator.services.mozilla.com/D295756
2026-04-30 05:04:37 +00:00
Chris Peterson
6a365bf36b
Bug 2031589 - Fix formatting of the coding style guide's Algorithms table. r=firefox-build-system-reviewers,glandium
...
Differential Revision: https://phabricator.services.mozilla.com/D294096
2026-04-16 06:34:39 +00:00
Chris Peterson
cd81caf080
Bug 2031589 - Update coding style guide's list of C++ features now allowed with C++20. r=nika,firefox-build-system-reviewers,glandium
...
* Default member-initializers for bit fields are now supported in C++20.
* [[attributes]] have been used for a while now.
* Concepts are supported in C++20.
* constexpr lambdas have been supported since C++17.
* Designated initializers are supported in C++20.
* std::format (C++20) is not fully supported in GCC libstdc++ until GCC
13. Use the fmt/format.h library instead.
* Coroutines aren't allowed because Clang doesn't support them on
Windows.
* using enum is not supported in GCC 10.
Differential Revision: https://phabricator.services.mozilla.com/D294095
2026-04-16 06:34:35 +00:00
Ejiro Oghenekome
ab144d7d50
Bug 1910902 - Update sidebar icons and references to use collapsed versions. r=nsharpley,desktop-theme-reviewers,mconley
...
Differential Revision: https://phabricator.services.mozilla.com/D289053
2026-03-26 18:05:15 +00:00
Sylvestre Ledru
dafd32a24a
Bug 2023419 - Update coding style docs: replace modeline guidance with .editorconfig reference r=emilio DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D287833
2026-03-25 13:09:00 +00:00
Sylvestre Ledru
e395ead174
Bug 2023419 - remove Emacs/Vim modelines from the examples r=emilio DONTBUILD
...
replaced by .editorconfig
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D287880
2026-03-17 07:48:48 +00:00
Sylvestre Ledru
e82c25717c
Bug 2017007 - Fix modeline example in general coding style docs to match actual codebase convention r=emilio DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D287817
2026-03-16 10:56:49 +00:00
Sylvestre Ledru
d8c329f668
Bug 1670949 - Remove deprecated mach clang-format code and update docs to use mach lint -l clang-format r=linter-reviewers,geckoview-reviewers,ai4dev-reviewers,suhaib,m_kato,sergesanspaille,ahal
...
+ add a warning message
Differential Revision: https://phabricator.services.mozilla.com/D287017
2026-03-14 14:21:38 +00:00
Sylvestre Ledru
23630d2488
Bug 2015713 - doc: fix doc warnings in the coding style pages r=marco DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D283237
2026-02-13 14:46:35 +00:00
Charlotte Wilson
a77c602d66
Bug 1911732 - Update coding_style_java.rst with Geckoview (Google) styling info r=m_kato,geckoview-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D277966
2026-01-13 06:13:45 +00:00
Chris Peterson
69e6e8511d
Bug 2002864 - Replace MOZ_CONSTINIT with C++20 constinit. r=xpcom-reviewers,sergesanspaille,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D274515
2025-12-09 07:00:16 +00:00
Emilio Cobos Álvarez and Chris Peterson
552f30ab62
Bug 1768116 - Compile as C++20. r=glandium,webrtc-reviewers,mjf
...
Co-authored-by: Chris Peterson <[email protected] >
Differential Revision: https://phabricator.services.mozilla.com/D271779
2025-11-12 05:19:40 +00:00
Jeff Muizelaar
20002dc19a
Bug 1990592 - Bump the listed minimum compiler versions. r=glandium
...
Bug 1981918 and bug 1981921 bumped. This changes the docs to match.
Differential Revision: https://phabricator.services.mozilla.com/D266057
2025-09-30 03:49:49 +00:00
serge-sans-paille
b239bac89d
Bug 1990246 - Remove obsolete references to MOZ_ALIGNOF r=emilio
...
This macro has been removed in bug 1288016.
Differential Revision: https://phabricator.services.mozilla.com/D265818
2025-09-24 10:37:54 +00:00
Sylvestre Ledru
07abc3ac8a
Bug 1962537 - docs: remove more hg docs
...
Differential Revision: https://phabricator.services.mozilla.com/D246772
2025-04-29 22:27:27 +00:00
Sylvestre Ledru
b588c53a93
Bug 1943936 - codespell 2.4.0: typo fixes r=linter-reviewers,profiler-reviewers,canaltinova,ahal
...
Differential Revision: https://phabricator.services.mozilla.com/D235601
2025-01-27 15:28:31 +00:00
longsonr
a1e0dc11f4
Bug 1931617 Part 2 - Remove mentions of Algorithm.h where it's no longer used r=emilio,application-update-reviewers,bytesized
...
Differential Revision: https://phabricator.services.mozilla.com/D229205
2024-11-19 11:25:39 +00:00
Adi
96cdd300d5
Backed out 2 changesets (bug 1931617) for causing for causing build bustages @sVersionComparator.cpp. CLOSED TREE
...
Backed out changeset 7376753fb852 (bug 1931617)
Backed out changeset 4cd29d936b4b (bug 1931617)
2024-11-19 11:11:50 +02:00
longsonr
2431f88b47
Bug 1931617 Part 2 - Remove mentions of Algorithm.h where it's no longer used r=emilio,application-update-reviewers,bytesized
...
Differential Revision: https://phabricator.services.mozilla.com/D229205
2024-11-19 08:26:38 +00:00
serge-sans-paille
c2bbe8fb3a
Bug 1920717 - Add static checker for global variables with runtime initialisation r=glandium
...
This patch both:
1. Provides a static checker to detect global variables which may not be
initialized at compile-time
2. Verify that variables flagged as MOZ_RUNINIT are indeed
initialized at runtime
3. In case of variables whose initialisation status varies based on
macro definition or template parameters, just flag them as
MOZ_GLOBINIT.
Differential Revision: https://phabricator.services.mozilla.com/D223342
2024-10-30 11:05:25 +00:00
serge-sans-paille
5946338a6a
Bug 1920718 - Annotate all global variable with runtime initialization attributes r=glandium,application-update-reviewers,media-playback-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,gfx-reviewers,aosmond,lina,nalexander,aabh,geckoview-reviewers,win-reviewers,gstoll,m_kato
...
MOZ_RUNINIT => initialized at runtime
MOZ_CONSTINIT => initialized at compile time
MOZ_GLOBINIT => initialized either at runtime or compile time, depending on template parameter, macro parameter etc
This annotation is only understood by our clang-tidy plugin. It has no
effect on regular compilation.
Differential Revision: https://phabricator.services.mozilla.com/D223341
2024-10-30 11:05:24 +00:00
Tamas Szentpeteri
8285dfaab8
Backed out changeset 4b1409597101 (bug 1920718) for causing bp bustages on rapl.cpp.
2024-10-08 23:27:18 +03:00
serge-sans-paille
1966f9a43c
Bug 1920718 - Annotate all global variable with runtime initialization as MOZ_RUNINIT r=application-update-reviewers,media-playback-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,gfx-reviewers,aosmond,lina,nalexander,aabh
...
This annotation is only understood by our clang-tidy plugin. It has no
effect on regular compilation.
Differential Revision: https://phabricator.services.mozilla.com/D223341
2024-10-08 16:49:51 +00:00
Mark Banner
57b142b0fe
Bug 1907860 - Clean up remaining parts of format-source. r=sheehan
...
Differential Revision: https://phabricator.services.mozilla.com/D216546
2024-07-15 14:00:10 +00:00
Andrew McCreight
7e5cd3bd2b
Bug 1902344 - Remove outdated data structure references in "Using C++ in Mozilla code" and elsewhere. r=xpcom-reviewers,nika DONTBUILD
...
nsAutoTArray was renamed to AutoTArray.
nsDataHashtable and nsJSThingHashtable don't exist any more.
nsTHashMap and nsTHashSet now exist.
nsDeque is properly typed now.
Pair is now CompactPair.
Differential Revision: https://phabricator.services.mozilla.com/D213624
2024-06-13 22:41:51 +00:00
Botond Ballo
fb1065c0c3
Bug 1858446 - Document that classes representing HTML elements should live in the mozilla::dom namespace. r=peterv DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D210576
2024-05-17 23:23:44 +00:00
ogiorgis
d916e7edbe
Bug 1840493 - doc/rst: fix some languages declaration r=firefox-source-docs-reviewers,webdriver-reviewers,necko-reviewers,geckoview-reviewers,devtools-reviewers,profiler-reviewers,championshuttler,whimboo,nchevobbe,julienw,amejiamarmol
...
Differential Revision: https://phabricator.services.mozilla.com/D196268
2023-12-13 18:32:20 +00:00
Mike Hommey
6aa78a25db
Bug 1867459 - Replace CPU_ARCH with TARGET_CPU. r=firefox-build-system-reviewers,sergesanspaille
...
Differential Revision: https://phabricator.services.mozilla.com/D195157
2023-12-08 10:43:59 +00:00
Sylvestre Ledru
2cc79f510e
Bug 1519636 - Remove nbsp in the doc r=firefox-source-docs-reviewers,geckoview-reviewers,ahal,m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D194782
2023-12-03 11:01:53 +00:00
Sylvestre Ledru
3608dc8457
Bug 1860157 - Fix typos found by codespell 2.2.6 r=webdriver-reviewers,zeid,search-reviewers,perftest-reviewers,devtools-reviewers,releng-reviewers,gbrown,sparky,jteow
...
Differential Revision: https://phabricator.services.mozilla.com/D191480
2023-10-19 20:52:10 +00:00
Emilio Cobos Álvarez
04e2ae3af3
Bug 1858711 - Refactor lwtheme attributes to account for missing colors. r=dao,desktop-theme-reviewers
...
When a theme doesn't specify popup colors, it makes sense to follow the
system-preferred color scheme. Refactor theming attributes so that we
can distinguish this. Instead of a single [lwt-popup-brighttext], we get
lwt-popup="dark"/"light", and handle it appropriately.
Same for the other relevant attributes.
Refactor sidebar theming (which already did this tri-state thing via
lwt-sidebar and lwt-sidebar-brighttext) to do the same using a single
lwt-sidebar attribute, and update the docs.
Differential Revision: https://phabricator.services.mozilla.com/D190919
2023-10-13 13:24:14 +00:00
Mike Hommey
c3d18e1e02
Bug 1851754 - Upgrade minimum supported Clang version to 8. r=firefox-build-system-reviewers,ahochheiden
...
Differential Revision: https://phabricator.services.mozilla.com/D188898
2023-09-22 02:34:51 +00:00
CanadaHonk
f65d19a19a
Bug 1841117 - Remove unused intl.uidirection pref r=gregp,sylvestre
...
It was still in `about:config` and referenced in some docs after mostly
being removed in Bug 1676137.
Differential Revision: https://phabricator.services.mozilla.com/D182748
2023-07-10 12:00:58 +00:00
Cristian Tuns
d80b8e8911
Backed out changeset 088b1611348a (bug 1841117) as requested by canadahonk CLOSED TREE
2023-07-04 18:39:27 -04:00
CanadaHonk
96a32ae0ca
Bug 1841117 - Remove unused intl.uidirection pref r=gregp
...
It was still in `about:config` and referenced in some docs after mostly
being removed in Bug 1676137.
Differential Revision: https://phabricator.services.mozilla.com/D182748
2023-07-04 22:31:28 +00:00
Mike Hommey
027d05ec27
Bug 1834436 - Upgrade minimum supported GCC version to 8. r=firefox-build-system-reviewers,sergesanspaille
...
Differential Revision: https://phabricator.services.mozilla.com/D178736
2023-06-01 20:09:19 +00:00
Mike Hommey
096fff8c41
Bug 1834955 - Upgrade minimum supported Clang-cl version to 9. r=firefox-build-system-reviewers,sergesanspaille
...
We have less constraints on the minimum supported clang-cl version, and
it would unlock C++17 inline variables (which had a bug on Windows
targets in clang up-to 8.x).
Differential Revision: https://phabricator.services.mozilla.com/D179037
2023-05-29 20:31:08 +00:00
Mike Hommey
3a3571681b
Bug 1833958 - Update clang version in C++ in Firefox doc. r=firefox-source-docs-reviewers,marco
...
Differential Revision: https://phabricator.services.mozilla.com/D178891
2023-05-25 06:50:43 +00:00
Andi-Bogdan Postelnicu
fc974b33c4
Bug 1277372 - Remove unused "mozilla/TypeTraits.h" r=sergesanspaille
...
Differential Revision: https://phabricator.services.mozilla.com/D174129
2023-04-17 13:50:11 +00:00
Itiel
6da8219633
Bug 1825586 - Update RTL docs r=Gijs
...
Differential Revision: https://phabricator.services.mozilla.com/D174136
2023-04-13 17:14:05 +00:00
Sylvestre Ledru
2d87d6b58f
no bug - doc: fix some typos r=marco
...
Differential Revision: https://phabricator.services.mozilla.com/D171688
2023-03-06 11:53:54 +00:00
ogiorgis
1826f0e73d
Bug 1749473 - fix all pygments warnings r=sylvestre
...
Differential Revision: https://phabricator.services.mozilla.com/D167915
2023-01-27 13:41:10 +00:00
Eemeli Aro
3d25e4614a
Bug 1804404 - Update l10n documentation due to DTD & .inc removal. r=flod
...
Differential Revision: https://phabricator.services.mozilla.com/D164047
2022-12-07 11:50:39 +00:00
Greg Stoll
757c579cea
no bug - fx doc: fix a few links to old pages r=sylvestre DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D162421
2022-11-18 21:20:18 +00:00
Greg Stoll
72069a846d
no bug - fx doc: fix link to moved string guide page r=sylvestre DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D159705
2022-10-19 19:51:27 +00:00
Sylvestre Ledru
43ee108f26
Bug 1787590 - Doc: Remove a 404 link r=jandem DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D157112
2022-09-12 12:37:43 +00:00
Ray Kraesig
fcc0aae9a6
Bug 1772856 - Clean up formatting r=sylvestre DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D148417
2022-06-15 07:12:02 +00:00