0
Commit Graph

8 Commits

Author SHA1 Message Date
Avi Drissman
dfd8808526 Update copyright headers in testing/, tools/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c95.

No-Try: true
No-Presubmit: true
Bug: 1098010
Change-Id: I3a8a7b150e7bd64690534727150646081df50439
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3900697
Reviewed-by: Mark Mentovai <mark@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1047644}
2022-09-15 20:11:09 +00:00
Raul Tambre
3c5b529eba tools: Use Python 3 style print statements [8/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.
Afterwards ran "git cl format --python" and cherry-picked the formatting changes.

There are no intended behavioural changes.

Bug: 941669
Change-Id: Ia6b0f45b817a3eaeaa8a796f885d99a06513e6f3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1818480
Commit-Queue: Raul Tambre <raul@tambre.ee>
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Martin Šrámek <msramek@chromium.org>
Auto-Submit: Raul Tambre <raul@tambre.ee>
Cr-Commit-Position: refs/heads/master@{#700347}
2019-09-26 18:35:31 +00:00
satorux
2f612699fe sort_sources.py: Document limitations
Along the way, add r prefix to regex patterns.

BUG=456014
TEST=N/A

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

Cr-Commit-Position: refs/heads/master@{#317193}
2015-02-20 00:37:43 +00:00
satorux
eef164ef75 Re-sort GYP files with the latest version of tools/source_list.py
In crrev.com/316164, a bug was fixed to handle comments in
a source list correctly.

In this patch, a bug was fixed to handle comments at the
end of a source list.

Along the way, sort some GYP files in sub directories under
base and net, which I forgot to sort previously.

BUG=456014
TEST=everything should build as before

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

Cr-Commit-Position: refs/heads/master@{#316418}
2015-02-16 01:40:17 +00:00
satorux
357fcdaa11 Sort GYP files under base using tools/sort_sources.py
For tools/sort_sources.py to be useful, existing GYP files
should be sorted.

BUG=456014
TEST=everything should build as before

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

Cr-Commit-Position: refs/heads/master@{#316164}
2015-02-13 04:37:52 +00:00
satorux
72c7409fa5 Sort GYP files under chrome sub directories using tools/sort_sources.py
GYP files directly under chrome were sorted in crrev.com/315927
The patch is to sort smaller GYP files in sub directories.

Also fix a bug where rc.version, ico, def, release suffixes weren't handled
correctly.

BUG=456014
TEST=everything should build as before

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

Cr-Commit-Position: refs/heads/master@{#316127}
2015-02-13 01:57:36 +00:00
satorux
fb19c78222 Sort GYP files under chrome using tools/sort_sources.py
For tools/sort_sources.py to be useful, existing GYP files
should be sorted.

Also fix a bug in sort_sources.py where .mm and .rc files weren't
sorted correctly.

BUG=456014
TEST=everything should build as before

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

Cr-Commit-Position: refs/heads/master@{#315927}
2015-02-12 04:02:42 +00:00
satorux
3d23ca0518 tools/sort_sources.py: sort C++ source file names in build files.
tools/git/move_source_file.py updates C++ source file names in
build files for you, but it does not sort the updated file names.

With this tool, you can sort C++ source file names in build files
(both GYP and GN files supported) automatically. It's not perfect
but should work reasonably well.

BUG=456014
TEST=Run the tool against some build files. The results are included in the patch.

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

Cr-Commit-Position: refs/heads/master@{#315517}
2015-02-10 08:05:19 +00:00