0
Commit Graph

10 Commits

Author SHA1 Message Date
Raul Tambre
f3d9412eeb tools: Use Python 3 style print statements [4/9]
Initial conversion performed using '2to3 -f print .'.
Imports added and duplicate parentheses removed manually.
Manually converted files, comments and inline code that 2to3 missed.
Presubmit disabled due to an unrelated error in find_runtime_symbols/find_runtime_symbols.py.
Afterwards ran "git cl format --python" and cherry-picked the formatting changes.

There are no intended behavioural changes.

NOPRESUBMIT=true

Bug: 941669
Change-Id: I3174ed0eb7005d493c6bc44751353b8fae18a1f1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1818478
Commit-Queue: Raul Tambre <raul@tambre.ee>
Reviewed-by: Nico Weber <thakis@chromium.org>
Auto-Submit: Raul Tambre <raul@tambre.ee>
Cr-Commit-Position: refs/heads/master@{#699202}
2019-09-24 05:31:44 +00:00
Kent Tamura
a28b0bba5e inlucde_tracer.py: Add -I flag to specify additional header directories
Change-Id: I1cca17830ed415f6f1f2d93d48a8c776a4cbfd37
Reviewed-on: https://chromium-review.googlesource.com/1086560
Commit-Queue: Kent Tamura <tkent@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#564372}
2018-06-05 05:59:46 +00:00
Kent Tamura
3455a93943 include_tracer.py: Remove unnecessary INCLUDE_PATHS entries.
Directories in Blink are unnecessary now because Blink headers are
included with qualified path names now.

Also, xcodebuild/ and third_party/npapi/ are not used now.

Change-Id: I2f742aafbde638f0da508fa982a79ec46eae1e62
Reviewed-on: https://chromium-review.googlesource.com/1086565
Commit-Queue: Kent Tamura <tkent@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#564367}
2018-06-05 05:42:55 +00:00
Kent Tamura
654d87ef22 include_tracer.py: Fix crashes by SkRefCnt.h and gmock_link_test.cc
- Do not crash with |#include SK_REF_CNT_MIXIN_INCLUDE|.
  "SK_REF_CND_MIXIN_INCLUDE" will be handled as a file name, and Walk()
  will show the " -- not found" message for it.

- Do not crash with '#include  "..."'.
  Support multiple spaces between '#include' and '"' or '<'.

Bug: 849199
Change-Id: I67ef457778fad47b2a6a7edf050fbe3c86e951df
Reviewed-on: https://chromium-review.googlesource.com/1086547
Commit-Queue: Kent Tamura <tkent@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#564365}
2018-06-05 05:31:54 +00:00
Blink Reformat
a30d423812 The Great Blink mv for source files, part 1.
Update file contents without moving files.

NOAUTOREVERT=true
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
TBR=darin@chromium.org

Bug: 768828
Change-Id: I8a2f4535a49a25f44b43df32f25691c0a2556d28
Reviewed-on: https://chromium-review.googlesource.com/1001152
Commit-Queue: Blink Reformat <blink-reformat@chromium.org>
Reviewed-by: Blink Reformat <blink-reformat@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#549060}
2018-04-07 15:31:06 +00:00
andrewhayden
865388d35d Delete last remaining CLD deps.
This is being split from the following review in order to get through
the bots safely without breaking the tree:
https://codereview.chromium.org/1917903004/

We will delete the DEPS to ensure no build-time dependencies at all on
CLD, then break/delete the problematic
compact_lang_det_generated_quadschrome.cc file that is causing bots to
have issues with the larger patchset.

TBR as this is already reviewed at the link above.

BUG=605688

Review-Url: https://codereview.chromium.org/1972543003
Cr-Commit-Position: refs/heads/master@{#394417}
2016-05-18 14:37:51 +00:00
tfarina@chromium.org
a023dca90d Get rid of ui_cocoa_third_party_toolkits target from ui.gyp
Instead we add a gyp file in third_party/google_toolbox_for_mac to build
the sources from third_party/GTM. This is the third and last patch in
this series.

BUG=299841
TEST=None
R=mark@chromium.org,ben@chromium.org
TBR=ben

Review URL: https://codereview.chromium.org/107933006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241471 0039d316-1c4b-4281-b951-d872f2087c98
2013-12-18 03:58:36 +00:00
tfarina@chromium.org
eb1421d0a0 Fix the paths to WebKit directories in include_tracer.py.
R=thakis@chromium.org

Review URL: https://codereview.chromium.org/21109005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215738 0039d316-1c4b-4281-b951-d872f2087c98
2013-08-06 00:13:25 +00:00
maruel@chromium.org
cb155a802b Fix python scripts in src/tools/
Make sure that:
- shebang is only present for executable files
- shebang is #!/usr/bin/env python
- __main__ is only present for executable files
- file's executable bit is coherent

Also fix EOF LF to be only one.

TBR=timurrrr@chromium.org
BUG=105108
TEST=

Review URL: http://codereview.chromium.org/8678023

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111960 0039d316-1c4b-4281-b951-d872f2087c98
2011-11-29 17:25:34 +00:00
thakis@chromium.org
833b584ce0 Add a tool that estimates the size of a file after all #includes have been resolved.
This is meant to be used mostly to measure how much IWYU saves on some files, so that we can brag about it.

Based on an almost identical script by jyrki@google.com (Jyrki Alakuijala)

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/6873034

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82006 0039d316-1c4b-4281-b951-d872f2087c98
2011-04-18 22:04:09 +00:00