mirror of
https://github.com/aphrody-labs/gn.git
synced 2026-10-13 21:06:29 +00:00
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>