format windows headers using new config.
Test new config:
https://chromium-review.googlesource.com/c/chromium/src/+/5197064
by applying clang-format on every problematic windows headers.
This CL is cloned from https://crrev.com/c/5366045.
Script:
-------
```
function replace {
echo "Replacing $1 by $2"
git grep -l "$1" \
| cut -f1 -d: \
| grep \
-e "\.h" \
-e "\.cc" \
| grep -v "third_party/[^b]" \
| sort \
| uniq \
| xargs sed -i "s/$1/$2/gi"
}
git checkout origin/main
git branch -D change-5197064 || true
git new-branch change-5197064
replace "#include <\(initguid|mmdeviceapi\|windows\|winsock2\|ws2tcpip\|shobjidl\|atlbase\|ole2\|unknwn\|objbase\|tchar\).h>" ""
replace "#include \"base\\/win\\/atl.h\"" ""
replace "#include <uiautomation.*>" ""
git add -u
git commit -m "remove problematic windows headers"
git revert HEAD --no-commit
git add -u
git commit -m "add problematic windows headers"
git cl format --upstream=HEAD~
git add -u
git commit -m "format"
git cl issue 5367127
git cl upload -df --bypass-hook
```
Also removed some unnecessary comments.
Bug: 329138753
Change-Id: I161c28ea2d27c569825e0c789a4c143530937f58
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5367127
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Owners-Override: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1287420}
NOKEYCHECK=True
GitOrigin-RevId: c8d6b16f02bc9013db2354b8649d2e0d97829a1a
1 file changed