|
|
DescriptionAdding 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
TBR=ben@chromium.org
Committed: https://crrev.com/f6935316b438a3848141644c9d10098de3da0a2d
Cr-Commit-Position: refs/heads/master@{#299435}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Corrected Error Messase #Patch Set 3 : Rebased the patch #Messages
Total messages: 24 (4 generated)
mohan.reddy@samsung.com changed reviewers: + ben@chromium.org
PTAL
On 2014/10/08 04:55:16, MRV wrote: > PTAL Dear Mr. Ben PTAL
avi@chromium.org changed reviewers: + avi@chromium.org
https://codereview.chromium.org/638663003/diff/1/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/638663003/diff/1/PRESUBMIT.py#newcode372 PRESUBMIT.py:372: 'FINAL as final as per C++11 \n' + This is awkward and mis-spelled English. I would phrase it as Use C++11's |override| and |final| rather than OVERRIDE and FINAL. And why isn't this an error rather than a warning? Warnings are for uses that might be correct, but the use of OVERRIDE and FINAL is never correct any more.
On 2014/10/09 15:30:22, Avi wrote: > https://codereview.chromium.org/638663003/diff/1/PRESUBMIT.py > File PRESUBMIT.py (right): > > https://codereview.chromium.org/638663003/diff/1/PRESUBMIT.py#newcode372 > PRESUBMIT.py:372: 'FINAL as final as per C++11 \n' + > This is awkward and mis-spelled English. I would phrase it as > > Use C++11's |override| and |final| rather than OVERRIDE and FINAL. > > And why isn't this an error rather than a warning? Warnings are for uses that > might be correct, but the use of OVERRIDE and FINAL is never correct any more. Dear Mr. Avi, thanks for your feedback. I have incorporated the changes mentioned. PTAL
Thanks Mr. Avi for the feedback. I have incorporated said changes. PTAL https://codereview.chromium.org/638663003/diff/1/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/638663003/diff/1/PRESUBMIT.py#newcode372 PRESUBMIT.py:372: 'FINAL as final as per C++11 \n' + On 2014/10/09 15:30:22, Avi wrote: > This is awkward and mis-spelled English. I would phrase it as > > Use C++11's |override| and |final| rather than OVERRIDE and FINAL. > > And why isn't this an error rather than a warning? Warnings are for uses that > might be correct, but the use of OVERRIDE and FINAL is never correct any more. Done.
LGTM but I don't have the authority to approve it. Ben?
On 2014/10/10 15:07:49, Avi wrote: > LGTM but I don't have the authority to approve it. > > Ben? Thanks Mr. Avi for review. Mr. Ben, could you please review my patch. Thank you :).
On 2014/10/10 15:08:59, MRV wrote: > On 2014/10/10 15:07:49, Avi wrote: > > LGTM but I don't have the authority to approve it. > > > > Ben? > > Thanks Mr. Avi for review. > Mr. Ben, could you please review my patch. > > Thank you :). Dear Mr. Ben, Could you please review this patch, delay incurring lots of patches, which we can prevent. This is recurring lots of patches like below: https://codereview.chromium.org/653593003/ https://codereview.chromium.org/648133002/ https://codereview.chromium.org/653583002/ PTAL.
avi@chromium.org changed reviewers: + maruel@chromium.org - ben@chromium.org
Let's pick a different OWNER. Marc-Antoine?
On 2014/10/13 20:06:22, Avi wrote: > Let's pick a different OWNER. Marc-Antoine? Thank you mr.avi. @mr.marc could you please review my patch.
On 2014/10/14 01:56:43, MRV wrote: > On 2014/10/13 20:06:22, Avi wrote: > > Let's pick a different OWNER. Marc-Antoine? > > Thank you mr.avi. > @mr.marc could you please review my patch. Dear All PRESUBMIT.py owners, Please review my patch. Delay in my patch is heading to lots of addtion of similay patches in the git repo like below: https://codereview.chromium.org/658453002/ https://codereview.chromium.org/657453002/ https://codereview.chromium.org/655553003/ https://codereview.chromium.org/636233004/ https://codereview.chromium.org/653593003/ e.t.c., So please PTAL
On 2014/10/14 04:59:15, MRV wrote: > On 2014/10/14 01:56:43, MRV wrote: > > On 2014/10/13 20:06:22, Avi wrote: > > > Let's pick a different OWNER. Marc-Antoine? > > > > Thank you mr.avi. > > @mr.marc could you please review my patch. > > Dear All PRESUBMIT.py owners, Please review my patch. > Delay in my patch is heading to lots of addtion of similay patches in the git > repo like below: > https://codereview.chromium.org/658453002/ > https://codereview.chromium.org/657453002/ > https://codereview.chromium.org/655553003/ > https://codereview.chromium.org/636233004/ > https://codereview.chromium.org/653593003/ > e.t.c., > > So please PTAL I'm making the TBR call.
The CQ bit was checked by avi@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/638663003/40001
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
On 2014/10/14 05:57:56, I haz the power (commit-bot) wrote: > Committed patchset #3 (id:40001) Thanks a lot Mr. Avi.
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/f6935316b438a3848141644c9d10098de3da0a2d Cr-Commit-Position: refs/heads/master@{#299435}
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/659443002/ by mkwst@chromium.org. The reason for reverting is: The if statement is incorrect. `if 'override' or 'final' in line` === `if 'override'`, because string constants are always true. This means that no one can upload patches, which is a bit annoying. Please fix in a subsequent patch..
Message was sent while issue was closed.
On 2014/10/14 07:17:29, Mike West wrote: > A revert of this CL (patchset #3 id:40001) has been created in > https://codereview.chromium.org/659443002/ by mailto:mkwst@chromium.org. > > The reason for reverting is: The if statement is incorrect. `if 'override' or > 'final' in line` === `if 'override'`, because string constants are always true. > This means that no one can upload patches, which is a bit annoying. > > Please fix in a subsequent patch.. Thanks Mr. Mike for reverting, I have resubmitted the patch "https://codereview.chromium.org/653883002/" which covers all most all the cases. Mr. Avi my sincere apologies to you. Iam learning more from this sort of mistakes and from next time I'll committed enough to not to repeat this or any sort of issues again. Thanks again for sparing your time for me.
Message was sent while issue was closed.
Please do not TBR PRESUBMIT.py patches. I was travelling and Monday was a national holiday in Canada.
Message was sent while issue was closed.
On 2014/10/14 14:33:10, M-A Ruel wrote: > Please do not TBR PRESUBMIT.py patches. I was travelling and Monday was a > national holiday in Canada. My fault. Apologies. |