Skip to content

Reformat the C++ sources and normalize the file headers (#653) - #656

Merged
ambroise-leclerc merged 8 commits into
developfrom
653-format-and-headers
Nov 24, 2026
Merged

ambroise-leclerc merged 8 commits into
developfrom
653-format-and-headers

Conversation

@ambroise-leclerc

Copy link
Copy Markdown
Collaborator

Closes #653.

Commits (squashed at merge)

  1. Reformat the C++ sources with clang-format, each file with the .clang-format of its directory. No behavior change; generated embedded asset headers and the gzip fixtures are untouched.
  2. Give every tracked C++ source the normalized header (SPDX, Author, Created, subsystem, Role, Thread/Alloc, LLM), absorbing the former @date, @author and @brief lines. Created comes from the old @date, else from the first commit of the file.
  3. Guards: the SourceHeaders and SourceHeadersRejectsDrift CTest cases, .github/scripts/check-clang-format.sh run by .github/workflows/SourceFormat.yml (pinned clang-format 21.1.8), and .git-blame-ignore-revs (added to the closed root layout).
  4. Documentation: .github/CONTRIBUTING.md, AGENTS.md, docs/CHANGELOG.md.

Validation

CEF-off build and full CTest suite: 682 tests, all passing (one skipped: CUDA). The CEF/Xvfb test was not run; this PR changes no bridge, lifecycle or module-serving behavior.

Notes

  • The hash in .git-blame-ignore-revs is that of the reformatting commit on this branch. A squash merge drops it: replace it with the hash on develop, or merge without squashing.
  • .clang-format says "22+" while the code was formatted with 21.1.8, which CI pins.
  • Scope: C++ sources only. CMake files and TypeScript do not need the header (see CONTRIBUTING).

Behavior-neutral: each file follows the .clang-format of its directory.
Generated embedded asset headers and the gzip fixtures are untouched.
SPDX, author, creation date, subsystem, role, thread and allocation model
and a reading hint, absorbing the former @Date, @author and @brief lines.
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 287 files, which is 187 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 42914722-ca80-4a0e-9cee-f1743e660a7b
Commits

Reviewing files that changed from the base of the PR and between a375c60 and 4ff4c43.

Files selected for processing: 287

  • .git-blame-ignore-revs
  • .gitattributes
  • .github/CONTRIBUTING.md
  • .github/scripts/check-clang-format.sh
  • .github/workflows/SourceFormat.yml
  • AGENTS.md
  • cmake/mddlog/Logger.cpp
  • docs/CHANGELOG.md
  • examples/.clang-format
  • examples/PortOption.hpp
  • examples/hello-world/HelloWorld.cpp
  • examples/host-loop/BoingCuda.cu
  • examples/host-loop/BoingCuda.hpp
  • examples/host-loop/BoingHost.hpp
  • examples/host-loop/BoingScene.hpp
  • examples/host-loop/HostLoop.cpp
  • examples/host-loop/HostLoopCapture.hpp
  • examples/host-loop/HostLoopUI.hpp
  • examples/life/Life.hpp
  • examples/life/LifeConsole.cpp
  • examples/life/LifeDeveloper.cpp
  • examples/life/LifeDeveloperOptions.hpp
  • examples/life/LifeEmbedded.cpp
  • examples/life/LifeFrontend.hpp
  • examples/life/react/LifeReact.cpp
  • examples/life/react/LifeReact.hpp
  • examples/pty/main.cpp
  • include/webfront/.clang-format
  • include/webfront/ApplicationOrigin.hpp
  • include/webfront/BridgeError.hpp
  • include/webfront/Broadcast.hpp
  • include/webfront/Commands.hpp
  • include/webfront/ContentPolicy.hpp
  • include/webfront/DeferredCalls.hpp
  • include/webfront/DeveloperApp.hpp
  • include/webfront/JsFunction.hpp
  • include/webfront/JsFunctionSender.hpp
  • include/webfront/Pty.hpp
  • include/webfront/PtyPage.hpp
  • include/webfront/ReadBinding.hpp
  • include/webfront/Task.hpp
  • include/webfront/UISubscribers.hpp
  • include/webfront/UIThread.hpp
  • include/webfront/ViewAssociation.hpp
  • include/webfront/WebFront.hpp
  • include/webfront/automation/Binding.hpp
  • include/webfront/automation/Channel.hpp
  • include/webfront/automation/Contract.hpp
  • include/webfront/automation/Credentials.hpp
  • include/webfront/automation/Discovery.hpp
  • include/webfront/automation/Enable.hpp
  • include/webfront/automation/Instructions.hpp
  • include/webfront/automation/Json.hpp
  • include/webfront/automation/Mcp.hpp
  • include/webfront/automation/McpHttp.hpp
  • include/webfront/automation/PageAuthentication.hpp
  • include/webfront/automation/Platform.hpp
  • include/webfront/automation/Session.hpp
  • include/webfront/components/forms/Description.hpp
  • include/webfront/components/forms/Form.hpp
  • include/webfront/components/forms/Reflection.hpp
  • include/webfront/components/pty/Options.hpp
  • include/webfront/components/pty/Unix.hpp
  • include/webfront/components/pty/Windows.hpp
  • include/webfront/components/react/Store.hpp
  • include/webfront/details/C++20Support.hpp
  • include/webfront/details/C++23Support.hpp
  • include/webfront/dom/Document.hpp
  • include/webfront/frontend/Action.hpp
  • include/webfront/frontend/CEF.hpp
  • include/webfront/frontend/CEFPaths.hpp
  • include/webfront/frontend/Capture.hpp
  • include/webfront/frontend/CloseRequest.hpp
  • include/webfront/frontend/DefaultBrowser.hpp
  • include/webfront/frontend/Downloads.hpp
  • include/webfront/frontend/EmbeddedFrontend.hpp
  • include/webfront/frontend/Frontend.hpp
  • include/webfront/frontend/NativeWebView.hpp
  • include/webfront/frontend/NativeWindow.hpp
  • include/webfront/frontend/ProfileLease.hpp
  • include/webfront/frontend/ScriptDialogs.hpp
  • include/webfront/frontend/StartupTrace.hpp
  • include/webfront/frontend/UIExecutor.hpp
  • include/webfront/frontend/UILoop.hpp
  • include/webfront/frontend/Url.hpp
  • include/webfront/frontend/WKWebView.hpp
  • include/webfront/frontend/WebKitGTK.hpp
  • include/webfront/frontend/WebKitGTKPolicy.hpp
  • include/webfront/frontend/WebView2.hpp
  • include/webfront/frontend/Window.hpp
  • include/webfront/frontend/WindowRegistry.hpp
  • include/webfront/http/AcceptEncoding.hpp
  • include/webfront/http/BlockingWorker.hpp
  • include/webfront/http/BuffersPolicy.hpp
  • include/webfront/http/Encodings.hpp
  • include/webfront/http/Gzip.hpp
  • include/webfront/http/GzipCache.hpp
  • include/webfront/http/GzipExecutor.hpp
  • include/webfront/http/HTTPServer.hpp
  • include/webfront/http/MimeType.hpp
  • include/webfront/http/Ranges.hpp
  • include/webfront/http/WebSocket.hpp
  • include/webfront/networking/BasicNetworking.hpp
  • include/webfront/networking/NetworkingMock.hpp
  • include/webfront/networking/SenderHeaders.hpp
  • include/webfront/networking/TCPNetworkingStdnet.hpp
  • include/webfront/networking/TCPSockets.hpp
  • include/webfront/networking/Tasks.hpp
  • include/webfront/system/DefaultFS.hpp
  • include/webfront/system/DeveloperFS.hpp
  • include/webfront/system/DeveloperFiles.hpp
  • include/webfront/system/DeveloperJournal.hpp
  • include/webfront/system/DeveloperPaths.hpp
  • include/webfront/system/DeveloperStore.hpp
  • include/webfront/system/FileSystem.hpp
  • include/webfront/system/FontStacks.hpp
  • include/webfront/system/IndexFS.hpp
  • include/webfront/system/MemoryStorage.hpp
  • include/webfront/system/NativeFS.hpp
  • include/webfront/system/NativeStorage.hpp
  • include/webfront/system/SafePath.hpp
  • include/webfront/system/Storage.hpp
  • include/webfront/system/WindowsArguments.hpp
  • include/webfront/system/WindowsCompat.hpp
  • include/webfront/testing/Bdd.hpp
  • include/webfront/testing/Capture.hpp
  • include/webfront/testing/Host.hpp
  • include/webfront/testing/Jasmine.hpp
  • include/webfront/testing/Process.hpp
  • include/webfront/tls/Credentials.hpp
  • include/webfront/tls/Server.hpp
  • include/webfront/tls/WebFront.hpp
  • include/webfront/tls/detail/ChaChaPoly.hpp
  • include/webfront/tls/detail/Crypto.hpp
  • include/webfront/tls/detail/Curves.hpp
  • include/webfront/tls/detail/Field.hpp
  • include/webfront/tls/detail/Protocol.hpp
  • include/webfront/tls/detail/Wire.hpp
  • include/webfront/tooling/HexDump.hpp
  • include/webfront/tooling/Logger.hpp
  • include/webfront/tooling/LoggerApi.hpp
  • include/webfront/tooling/MddlogLogger.hpp
  • include/webfront/tooling/PathUtils.hpp
  • include/webfront/utils/Json.hpp
  • include/webfront/utils/Sha256.hpp
  • include/webfront/utils/TypeErasedFunction.hpp
  • include/webfront/weblink/CallFrame.hpp
  • include/webfront/weblink/DomBatch.hpp
  • include/webfront/weblink/Messages.hpp
  • include/webfront/weblink/PendingCalls.hpp
  • include/webfront/weblink/WebLink.hpp
  • test/.clang-format
  • test/cmake/CheckRepositoryLayout.cmake
  • test/cmake/CheckRepositoryLayoutNegative.cmake
  • test/cmake/CheckSourceHeaders.cmake
  • test/cmake/CheckSourceHeadersNegative.cmake
  • test/cmake/bdd-consumer/main.cpp
  • test/cmake/consumer/bdd.cpp
  • test/cmake/consumer/main.cpp
  • test/cmake/module-scan/main.cpp
  • test/driver/DriverDeadline.hpp
  • test/driver/RequestLog.hpp
  • test/driver/TestFrontend.hpp
  • test/driver/WebFrontWf.cpp
  • test/driver/WfDriver.hpp
  • test/fixtures/pty/Probe.cpp
  • test/fuzz/GzipDifferential.cpp
  • test/fuzz/GzipDifferentialFuzz.cpp
  • test/fuzz/GzipFuzz.cpp
  • test/fuzz/GzipZlib.hpp
  • test/fuzz/HTTPFuzz.cpp
  • test/fuzz/MessagesFuzz.cpp
  • test/fuzz/TLSFuzz.cpp
  • test/fuzz/WebSocketFuzz.cpp
  • test/unit/AcceptEncodingTests.cpp
  • test/unit/ApplicationTaskTests.cpp
  • test/unit/ApplicationUrlTests.cpp
  • test/unit/AutomationChannelTests.cpp
  • test/unit/AutomationDiscoveryTests.cpp
  • test/unit/AutomationDistributionGuard.cpp
  • test/unit/AutomationMcpHttpTests.cpp
  • test/unit/AutomationTests.cpp
  • test/unit/BddDiscoveryProbe.cpp
  • test/unit/BddSelfTest.cpp
  • test/unit/BroadcastTests.cpp
  • test/unit/CEFMacrosTests.cpp
  • test/unit/CEFPathsTests.cpp
  • test/unit/CMakeLists.txt
  • test/unit/CommandsTests.cpp
  • test/unit/ContentPolicyTests.cpp
  • test/unit/DefaultFSTests.cpp
  • test/unit/DeferredCallTests.cpp
  • test/unit/DeveloperTests.cpp
  • test/unit/DomBatchTests.cpp
  • test/unit/DomDocumentTests.cpp
  • test/unit/DownloadsTests.cpp
  • test/unit/EmbeddedAssetChecks.hpp
  • test/unit/EmbeddedCoreAssetsTests.cpp
  • test/unit/EncodingsTests.cpp
  • test/unit/FileSystemTests.cpp
  • test/unit/FormsDeclaration.cpp
  • test/unit/FormsHarness.hpp
  • test/unit/FormsReflectionRejects.cpp
  • test/unit/FormsReflectionTests.cpp
  • test/unit/FormsSettings.hpp
  • test/unit/FormsTests.cpp
  • test/unit/FrameAllocationTest.cpp
  • test/unit/FrontendContractTests.cpp
  • test/unit/FrontendUrlTests.cpp
  • test/unit/GzipCacheBenchmark.cpp
  • test/unit/GzipDecoderBenchmark.cpp
  • test/unit/GzipExecutorTests.cpp
  • test/unit/GzipTests.cpp
  • test/unit/HTTPEncodingTests.cpp
  • test/unit/HTTPRangeTests.cpp
  • test/unit/HTTPRoutesTests.cpp
  • test/unit/HTTPServerTests.cpp
  • test/unit/HostLoopTests.cpp
  • test/unit/HostTests.cpp
  • test/unit/IndexFSTests.cpp
  • test/unit/InjectableNetworking.hpp
  • test/unit/InlineTaskScope.hpp
  • test/unit/JSFunctionTests.cpp
  • test/unit/JasmineConsumerTests.cpp
  • test/unit/JsFunctionSenderTests.cpp
  • test/unit/LifeTests.cpp
  • test/unit/LoggerTests.cpp
  • test/unit/Main.cpp
  • test/unit/MddlogHeaderConsumer.cpp
  • test/unit/MddlogLoggerTests.cpp
  • test/unit/MddlogTransportTests.cpp
  • test/unit/MessagesTests.cpp
  • test/unit/MimeTypeTests.cpp
  • test/unit/Mocks.hpp
  • test/unit/ModuleHTTPServerTests.cpp
  • test/unit/NativeFSTests.cpp
  • test/unit/NativeStorageTests.cpp
  • test/unit/NativeWindowTests.cpp
  • test/unit/ProfileLeaseTests.cpp
  • test/unit/PtyTests.cpp
  • test/unit/ReactStoreTests.cpp
  • test/unit/ReadBindingTests.cpp
  • test/unit/SafePathTests.cpp
  • test/unit/ScenarioIsolation.cpp
  • test/unit/StdnetShutdownTests.cpp
  • test/unit/StorageTests.cpp
  • test/unit/StructuredShutdownTests.cpp
  • test/unit/TemporaryDirectory.hpp
  • test/unit/TlsConstantTime.cpp
  • test/unit/TlsTests.cpp
  • test/unit/TypeErasedFunctionTests.cpp
  • test/unit/UIExecutorTests.cpp
  • test/unit/UISubscribersTests.cpp
  • test/unit/ViewAssociationTests.cpp
  • test/unit/WebFrontTests.cpp
  • test/unit/WebKitGTKPolicyTests.cpp
  • test/unit/WebLinkTests.cpp
  • test/unit/WebSocketTests.cpp
  • test/unit/WebView2ControllerMock.hpp
  • test/unit/WebView2PolicyMocks.hpp
  • test/unit/WebView2Tests.cpp
  • test/unit/WfDriverTests.cpp
  • test/unit/WindowRegistryTests.cpp
  • test/web/AutomationHost.cpp
  • test/web/CEFContentPolicy.cpp
  • test/web/CEFFileServices.cpp
  • test/web/DeveloperTest.cpp
  • test/web/FrontendLifecycle.cpp
  • test/web/JasmineConsumer.cpp
  • test/web/JasmineTest.cpp
  • test/web/LifeEmbeddedTest.cpp
  • test/web/MultiInstance.cpp
  • test/web/NativeIntegrationManual.cpp
  • test/web/RejectedWebSocketServer.hpp
  • test/web/TlsInterop.cpp
  • test/web/TransportBenchmark.hpp
  • test/web/WKWebViewClassImages.cpp
  • test/web/WKWebViewClassModule.cpp
  • test/web/WKWebViewHeaderConsumer.cpp
  • test/web/WKWebViewLifecycle.cpp
  • test/web/WKWebViewTransportBenchmark.cpp
  • test/web/WebKitGTKLifecycle.cpp
  • test/web/WebKitGTKTransportBenchmark.cpp
  • test/web/WebView2HeaderConsumer.cpp
  • test/web/WebView2Lifecycle.cpp
  • test/web/WebView2TransportBenchmark.cpp
  • test/web/host/HostProbe.cpp

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ambroise-leclerc
ambroise-leclerc merged commit f5dc104 into develop Nov 24, 2026
23 of 24 checks passed
@ambroise-leclerc
ambroise-leclerc deleted the 653-format-and-headers branch November 24, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reformater le code avec clang-format et normaliser les en-têtes de fichiers

2 participants