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

Issue 653883002: Adding Presubmit error when OVERRIDE and FINAL is not used as C++11 standard (Closed)

Created:
6 years, 2 months ago by MRV
Modified:
6 years, 2 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Adding Presubmit error when OVERRIDE and FINAL is not used as C++11 standard Alerting the error for use to use c++11 constructs |override| and |final| instead of OVERRIDE and FINAL respctively BUG=417463 Committed: https://crrev.com/f21db965b70b61dea512fc6e98aad6e919274610 Cr-Commit-Position: refs/heads/master@{#299880}

Patch Set 1 #

Patch Set 2 : Finetuned the patch #

Total comments: 2

Patch Set 3 : Finetuned patch as per suggestions #

Total comments: 2

Patch Set 4 : Addressed the comments #

Total comments: 12

Patch Set 5 : Incorporated changes and add unittests #

Total comments: 9

Patch Set 6 : Applied NIT Changes #

Total comments: 2

Patch Set 7 : Applied sys changes and sort order #

Total comments: 2

Patch Set 8 : incorporated review comments #

Total comments: 2

Patch Set 9 : incorporated review comments #

Total comments: 2

Patch Set 10 : Final changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -11 lines) Patch
M PRESUBMIT.py View 1 2 3 4 5 6 9 chunks +28 lines, -11 lines 0 comments Download
M PRESUBMIT_test.py View 1 2 3 4 5 6 7 8 9 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (4 generated)
MRV
In this patch I have covered the cases to catch presubmit errors. Cases like lowercase ...
6 years, 2 months ago (2014-10-14 09:44:57 UTC) #2
Mike West
On 2014/10/14 09:44:57, MRV wrote: > In this patch I have covered the cases to ...
6 years, 2 months ago (2014-10-14 10:35:47 UTC) #3
Mike West
https://codereview.chromium.org/653883002/diff/20001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/653883002/diff/20001/PRESUBMIT.py#newcode1270 PRESUBMIT.py:1270: if (re.search(r"\b" + override_pattern + r"\b", line) or I'd ...
6 years, 2 months ago (2014-10-14 10:35:54 UTC) #4
MRV
Dear Mr. Mike, thanks for your feedback, its working well. I have updated the changes ...
6 years, 2 months ago (2014-10-14 11:50:16 UTC) #5
Mike West
Could you upload your changes to 'PRESUBMIT_test.py', please? https://codereview.chromium.org/653883002/diff/40001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/653883002/diff/40001/PRESUBMIT.py#newcode1265 PRESUBMIT.py:1265: final_pattern ...
6 years, 2 months ago (2014-10-14 11:53:16 UTC) #6
MRV
Dear Mr. Mike thanks for your time and review. I have incorporated changes in the ...
6 years, 2 months ago (2014-10-14 12:24:25 UTC) #7
Mike West
You still haven't uploaded the tests I asked for. :) I'd appreciate it if you ...
6 years, 2 months ago (2014-10-14 12:35:16 UTC) #8
M-A Ruel
https://codereview.chromium.org/653883002/diff/60001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/653883002/diff/60001/PRESUBMIT.py#newcode12 PRESUBMIT.py:12: import re I know it's not your fault but ...
6 years, 2 months ago (2014-10-14 14:38:20 UTC) #10
MRV
Dear Mr. Ruel and M. Mike, thanks for your valuable feedback. I have incorporated the ...
6 years, 2 months ago (2014-10-15 08:49:59 UTC) #11
M-A Ruel
Looks good, final nits. https://codereview.chromium.org/653883002/diff/80001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/653883002/diff/80001/PRESUBMIT.py#newcode1266 PRESUBMIT.py:1266: if (f.LocalPath().endswith(('.cc', '.mm', '.cpp', '.h'))): ...
6 years, 2 months ago (2014-10-15 12:57:04 UTC) #12
Mike West
LGTM % one nit, and assuming that you take care of Maruel's comments. Thank you ...
6 years, 2 months ago (2014-10-15 13:10:03 UTC) #14
MRV
Thanks Mr. Ruel and Mr. Mike for review and for your time. I have incorporated ...
6 years, 2 months ago (2014-10-15 13:34:46 UTC) #15
M-A Ruel
https://codereview.chromium.org/653883002/diff/80001/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/653883002/diff/80001/PRESUBMIT.py#newcode1268 PRESUBMIT.py:1268: if (input_api.re.search(r"\b(OVERRIDE|FINAL)\b", line)): On 2014/10/15 13:34:46, MRV wrote: > ...
6 years, 2 months ago (2014-10-15 13:59:22 UTC) #16
MRV
Dear Mr. Ruel Thanks for your precious reviews. I have updated the changes as per ...
6 years, 2 months ago (2014-10-15 14:14:30 UTC) #17
M-A Ruel
Last nit. https://codereview.chromium.org/653883002/diff/120001/PRESUBMIT_test.py File PRESUBMIT_test.py (right): https://codereview.chromium.org/653883002/diff/120001/PRESUBMIT_test.py#newcode441 PRESUBMIT_test.py:441: mock_file_cpp= MockFile('something.cpp', lines_h) mock_file_cpp = MockFile('something.cpp', lines_h) ...
6 years, 2 months ago (2014-10-15 14:27:39 UTC) #18
MRV
Dear mr.Ruel for feedback. Updated changes in new patch set. PTAL. https://codereview.chromium.org/653883002/diff/120001/PRESUBMIT_test.py File PRESUBMIT_test.py (right): ...
6 years, 2 months ago (2014-10-15 15:03:27 UTC) #19
M-A Ruel
https://codereview.chromium.org/653883002/diff/140001/PRESUBMIT_test.py File PRESUBMIT_test.py (right): https://codereview.chromium.org/653883002/diff/140001/PRESUBMIT_test.py#newcode440 PRESUBMIT_test.py:440: lines_cpp = ['foo2() FINAL;'] Please fix spacing everywhere to ...
6 years, 2 months ago (2014-10-15 15:22:20 UTC) #20
MRV
Dear mr.Ruel, nits were addressed. PTAL https://codereview.chromium.org/653883002/diff/140001/PRESUBMIT_test.py File PRESUBMIT_test.py (right): https://codereview.chromium.org/653883002/diff/140001/PRESUBMIT_test.py#newcode440 PRESUBMIT_test.py:440: lines_cpp = ['foo2() ...
6 years, 2 months ago (2014-10-15 17:06:12 UTC) #21
M-A Ruel
https://codereview.chromium.org/653883002/diff/160001/PRESUBMIT_test.py File PRESUBMIT_test.py (right): https://codereview.chromium.org/653883002/diff/160001/PRESUBMIT_test.py#newcode440 PRESUBMIT_test.py:440: lines_cpp = ['foo2() FINAL;'] spacing is still inconsistent.
6 years, 2 months ago (2014-10-15 17:07:37 UTC) #22
MRV
Dear Mr, Ruel, incoporated all the changes now. PTAL https://codereview.chromium.org/653883002/diff/160001/PRESUBMIT_test.py File PRESUBMIT_test.py (right): https://codereview.chromium.org/653883002/diff/160001/PRESUBMIT_test.py#newcode440 PRESUBMIT_test.py:440: ...
6 years, 2 months ago (2014-10-16 02:44:13 UTC) #23
M-A Ruel
lgtm, thanks
6 years, 2 months ago (2014-10-16 12:05:59 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/653883002/180001
6 years, 2 months ago (2014-10-16 12:06:37 UTC) #26
commit-bot: I haz the power
Committed patchset #10 (id:180001)
6 years, 2 months ago (2014-10-16 12:26:56 UTC) #27
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/f21db965b70b61dea512fc6e98aad6e919274610 Cr-Commit-Position: refs/heads/master@{#299880}
6 years, 2 months ago (2014-10-16 12:27:47 UTC) #28
MRV
6 years, 2 months ago (2014-10-16 16:10:58 UTC) #29
Message was sent while issue was closed.
On 2014/10/16 12:05:59, M-A Ruel wrote:
> lgtm, thanks

Thanks a lot Mr. Ruel, I have learnt a lot with this patch.
Thanks again for sparing your time for review.

Powered by Google App Engine
This is Rietveld 408576698