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

Issue 1221643012: Subzero: Add -Wshadow to the build. (Closed)

Created:
5 years, 5 months ago by Jim Stichnoth
Modified:
5 years, 5 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Subzero: Add -Wshadow to the build. BUG= none

Patch Set 1 #

Patch Set 2 : Change the previous underscore naming style #

Total comments: 11

Patch Set 3 : Rebase #

Total comments: 4

Patch Set 4 : Code review changes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+331 lines, -271 lines) Patch
M Makefile.standalone View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/IceAPInt.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/IceAssembler.h View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M src/IceCfg.cpp View 1 2 4 chunks +5 lines, -5 lines 0 comments Download
M src/IceCfgNode.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M src/IceCfgNode.cpp View 1 2 5 chunks +7 lines, -7 lines 0 comments Download
M src/IceClFlags.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/IceClFlagsExtra.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/IceCompileServer.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M src/IceCompileServer.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/IceCompiler.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/IceConverter.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/IceConverter.cpp View 1 2 9 chunks +21 lines, -20 lines 1 comment Download
M src/IceDefs.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M src/IceELFObjectWriter.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/IceELFObjectWriter.cpp View 1 2 3 chunks +7 lines, -3 lines 0 comments Download
M src/IceELFSection.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/IceELFSection.cpp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/IceELFStreamer.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/IceGlobalContext.h View 1 2 5 chunks +15 lines, -15 lines 0 comments Download
M src/IceGlobalContext.cpp View 1 2 4 chunks +24 lines, -23 lines 0 comments Download
M src/IceGlobalInits.h View 1 2 6 chunks +16 lines, -13 lines 0 comments Download
M src/IceGlobalInits.cpp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/IceInst.h View 1 2 2 chunks +7 lines, -5 lines 1 comment Download
M src/IceInst.cpp View 1 2 9 chunks +31 lines, -30 lines 0 comments Download
M src/IceInstARM32.h View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M src/IceInstARM32.cpp View 1 2 9 chunks +33 lines, -36 lines 0 comments Download
M src/IceInstX8632.cpp View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M src/IceInstX86Base.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/IceInstX86BaseImpl.h View 1 2 7 chunks +18 lines, -18 lines 0 comments Download
M src/IceLiveness.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/IceOperand.h View 1 2 7 chunks +14 lines, -14 lines 0 comments Download
M src/IceRNG.h View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M src/IceRegAlloc.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/IceRegAlloc.cpp View 1 2 4 chunks +5 lines, -5 lines 0 comments Download
M src/IceRegistersX8632.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/IceTargetLowering.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/IceTargetLowering.cpp View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M src/IceTargetLoweringARM32.cpp View 1 2 3 8 chunks +5 lines, -7 lines 0 comments Download
M src/IceTargetLoweringMIPS32.cpp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX8632Traits.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/IceTargetLoweringX86BaseImpl.h View 1 2 4 chunks +12 lines, -7 lines 0 comments Download
M src/IceThreading.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M src/IceTimerTree.cpp View 1 2 2 chunks +8 lines, -7 lines 0 comments Download
M src/IceTranslator.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/IceTypeConverter.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/IceTypeConverter.cpp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/PNaClTranslator.cpp View 1 2 4 chunks +10 lines, -9 lines 0 comments Download
M unittest/BitcodeMunge.h View 1 chunk +1 line, -0 lines 0 comments Download
M unittest/IceELFSectionTest.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M unittest/IceParseInstsTest.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (1 generated)
Jim Stichnoth
This demonstrates a different coding style for avoiding shadowing, in which arguments that shadow a ...
5 years, 5 months ago (2015-06-30 21:35:14 UTC) #2
jvoung (off chromium)
Well, I do like that -Wshadow catches things (bugs or unused vars)... No strong opinion ...
5 years, 5 months ago (2015-07-01 18:44:51 UTC) #3
Karl
I'm not clear on what the rules for naming parameter/fields, and therefore I'm having a ...
5 years, 5 months ago (2015-07-07 17:00:40 UTC) #4
John
https://codereview.chromium.org/1221643012/diff/20001/src/IceInst.cpp File src/IceInst.cpp (right): https://codereview.chromium.org/1221643012/diff/20001/src/IceInst.cpp#newcode240 src/IceInst.cpp:240: InstAlloca::InstAlloca(Cfg *Func, Operand *ByteCount, uint32_t MyAlignInBytes, On 2015/07/07 17:00:40, ...
5 years, 5 months ago (2015-07-07 17:07:49 UTC) #5
Karl
https://codereview.chromium.org/1221643012/diff/20001/src/IceInst.cpp File src/IceInst.cpp (right): https://codereview.chromium.org/1221643012/diff/20001/src/IceInst.cpp#newcode240 src/IceInst.cpp:240: InstAlloca::InstAlloca(Cfg *Func, Operand *ByteCount, uint32_t MyAlignInBytes, On 2015/07/07 17:07:49, ...
5 years, 5 months ago (2015-07-07 18:21:14 UTC) #6
John
https://codereview.chromium.org/1221643012/diff/20001/src/IceInst.cpp File src/IceInst.cpp (right): https://codereview.chromium.org/1221643012/diff/20001/src/IceInst.cpp#newcode240 src/IceInst.cpp:240: InstAlloca::InstAlloca(Cfg *Func, Operand *ByteCount, uint32_t MyAlignInBytes, On 2015/07/07 18:21:13, ...
5 years, 5 months ago (2015-07-07 18:28:32 UTC) #7
John
On 2015/07/07 18:28:32, John wrote: > https://codereview.chromium.org/1221643012/diff/20001/src/IceInst.cpp > File src/IceInst.cpp (right): > > https://codereview.chromium.org/1221643012/diff/20001/src/IceInst.cpp#newcode240 > ...
5 years, 5 months ago (2015-07-07 18:39:09 UTC) #8
Karl
https://codereview.chromium.org/1221643012/diff/20001/src/IceInst.cpp File src/IceInst.cpp (right): https://codereview.chromium.org/1221643012/diff/20001/src/IceInst.cpp#newcode240 src/IceInst.cpp:240: InstAlloca::InstAlloca(Cfg *Func, Operand *ByteCount, uint32_t MyAlignInBytes, On 2015/07/07 18:28:32, ...
5 years, 5 months ago (2015-07-07 19:09:34 UTC) #9
John
On 2015/07/07 19:09:34, Karl wrote: > https://codereview.chromium.org/1221643012/diff/20001/src/IceInst.cpp > File src/IceInst.cpp (right): > > https://codereview.chromium.org/1221643012/diff/20001/src/IceInst.cpp#newcode240 > ...
5 years, 5 months ago (2015-07-07 19:29:44 UTC) #10
Jim Stichnoth
Rebased the patch. To repeat some comments on the CL, the idea is to catch ...
5 years, 5 months ago (2015-07-13 19:33:37 UTC) #11
jvoung (off chromium)
https://codereview.chromium.org/1221643012/diff/40001/src/IceTargetLoweringARM32.cpp File src/IceTargetLoweringARM32.cpp (right): https://codereview.chromium.org/1221643012/diff/40001/src/IceTargetLoweringARM32.cpp#newcode1270 src/IceTargetLoweringARM32.cpp:1270: T_Hi = makeReg(IceType_i32); oops, T_Hi and T_Lo should already ...
5 years, 5 months ago (2015-07-13 22:40:43 UTC) #12
Jim Stichnoth
https://codereview.chromium.org/1221643012/diff/40001/src/IceTargetLoweringARM32.cpp File src/IceTargetLoweringARM32.cpp (right): https://codereview.chromium.org/1221643012/diff/40001/src/IceTargetLoweringARM32.cpp#newcode1270 src/IceTargetLoweringARM32.cpp:1270: T_Hi = makeReg(IceType_i32); On 2015/07/13 22:40:43, jvoung wrote: > ...
5 years, 5 months ago (2015-07-13 23:01:04 UTC) #13
jvoung (off chromium)
I would be okay with it, but I haven't "experienced" it / had to face ...
5 years, 5 months ago (2015-07-14 01:25:19 UTC) #14
Jim Stichnoth
5 years, 5 months ago (2015-07-24 14:13:41 UTC) #15
Given the lack of consensus on this (and tbh, I'm not completely bought into
this approach either), I think I'll just abandon this and close the CL.

Powered by Google App Engine
This is Rietveld 408576698