commit | dc3d0cde4669ea445666b0d89b6fc70c754585eb | [log] [tgz] |
---|---|---|
author | Lei Zhang <thestig@chromium.org> | Tue Apr 20 18:39:21 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Apr 20 18:39:21 2021 |
tree | 244ac1e2ee620bf94480303205c6b5ea238123f2 | |
parent | 2b5cd46e9dc251b0164aba121278dd571036c1f3 [diff] |
Delete unused STL includes from base/ and chrome/ headers. Headers that do not contain "std::" do not need STL includes. This CL is mechanically generated as follows: INCL="algorithm|array|list|map|memory|queue|set|string|utility|vector" git ls-files base chrome | grep '\.h$' | xargs grep -L std:: | \ xargs grep -El "#include <($INCL)>$" > to_process.txt INCL_ESCAPED="$(echo $INCL|sed 's/|/\\|/g')" cat to_process.txt | xargs sed -iE "/^#include <\($INCL_ESCAPED\)>$/d" cat to_process.txt | xargs sed -i '/^$/N;/^\n$/D' Bug: 1200833 Change-Id: Iaaf35727e537e81368417c338acd23191f981392 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2837690 Reviewed-by: Peter Boström <pbos@chromium.org> Reviewed-by: Alex Gough <ajgo@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/master@{#874349}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.