Files
Takuto Ikuta 3fef1f0003 Add include sorting configuration to .clang-format and reformat
Configure include sorting options in .clang-format based on
Chromium's settings to adhere to Google C++ Style Guide:
- IncludeBlocks: Regroup
- IncludeCategories (with special priorities for Windows headers)
- IncludeIsMainRegex (for recognizing main headers in tests and platform files)

This ensures that tools/run_formatter.sh automatically sorts headers
and groups them appropriately (e.g. separating main headers, C system headers,
and C++ standard library headers with blank lines).

Also reformat existing files with tools/run_formatter.sh.

Change-Id: I1a82e23a7e1ac117a5f13d43a611a13c475fe2d1
Reviewed-on: https://gn-review.googlesource.com/c/gn/+/27200
Reviewed-by: David Turner <digit@google.com>
Commit-Queue: Takuto Ikuta <tikuta@google.com>
2026-10-02 05:45:37 -07:00
..