Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Issue 998273002: Make presubmit check that #if or #ifdef does not come before includes (Closed)

Created:
5 years, 9 months ago by rmistry
Modified:
5 years, 9 months ago
Reviewers:
borenet
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Make presubmit check that #if or #ifdef does not come before includes. BUG=skia:3362 Committed: https://skia.googlesource.com/skia/+/01cbf6c4673b805ab80e2b37e35eb4c89b135a1b

Patch Set 1 : Initial upload #

Patch Set 2 : Cleanup #

Total comments: 6

Patch Set 3 : Addressing comments #

Patch Set 4 : Handle single line comments #

Patch Set 5 : Cleanup #

Total comments: 2

Patch Set 6 : Allow whitespaces before comments #

Patch Set 7 : Cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -0 lines) Patch
M PRESUBMIT.py View 1 2 3 4 5 6 2 chunks +42 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
rmistry
5 years, 9 months ago (2015-03-12 12:36:49 UTC) #2
borenet
https://codereview.chromium.org/998273002/diff/20001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/998273002/diff/20001/PRESUBMIT.py#newcode84 PRESUBMIT.py:84: copyright_end_pattern = re.compile(' \*\/.*\n') Suggest using '^\/\*w*$' etc https://codereview.chromium.org/998273002/diff/20001/PRESUBMIT.py#newcode90 ...
5 years, 9 months ago (2015-03-12 12:47:48 UTC) #3
rmistry
https://codereview.chromium.org/998273002/diff/20001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/998273002/diff/20001/PRESUBMIT.py#newcode84 PRESUBMIT.py:84: copyright_end_pattern = re.compile(' \*\/.*\n') On 2015/03/12 12:47:48, borenet wrote: ...
5 years, 9 months ago (2015-03-12 13:13:59 UTC) #6
borenet
LGTM
5 years, 9 months ago (2015-03-12 13:19:42 UTC) #7
rmistry
I changed the code a little bit to handle single line comments as well. Could ...
5 years, 9 months ago (2015-03-12 14:27:57 UTC) #8
borenet
LGTM but added a note which may or may not be a problem https://codereview.chromium.org/998273002/diff/120001/PRESUBMIT.py File ...
5 years, 9 months ago (2015-03-12 14:30:43 UTC) #9
rmistry
https://codereview.chromium.org/998273002/diff/120001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/998273002/diff/120001/PRESUBMIT.py#newcode85 PRESUBMIT.py:85: single_line_comment_pattern = re.compile('^//.*$') On 2015/03/12 14:30:41, borenet wrote: > ...
5 years, 9 months ago (2015-03-12 14:42:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/998273002/160001
5 years, 9 months ago (2015-03-12 14:43:15 UTC) #13
commit-bot: I haz the power
5 years, 9 months ago (2015-03-12 14:48:46 UTC) #14
Message was sent while issue was closed.
Committed patchset #7 (id:160001) as
https://skia.googlesource.com/skia/+/01cbf6c4673b805ab80e2b37e35eb4c89b135a1b

Powered by Google App Engine
This is Rietveld 408576698