Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(107)

Issue 6427056: Fix trailing commas in enums

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by gw280
Modified:
13 years, 5 months ago
Reviewers:
bungeman, reed1, bsalomon, TomH
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

Fix trailing commas in enums R=reed1 BUG= TEST=

Patch Set 1 #

Patch Set 2 : Add -pedantic to CXXFLAGS and update all enums #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -111 lines) Patch
M bench/AAClipBench.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M bench/ChecksumBench.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M bench/GrMemoryPoolBench.cpp View 1 6 chunks +6 lines, -6 lines 0 comments Download
M bench/MathBench.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M bench/MatrixBench.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M bench/PictureRecordBench.cpp View 1 4 chunks +4 lines, -4 lines 0 comments Download
M bench/VertBench.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M bench/benchmain.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M experimental/Intersection/Simplify.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M gm/gmmain.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M gm/system_preferences_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M gyp/common_conditions.gypi View 1 1 chunk +2 lines, -1 line 1 comment Download
M include/core/SkAnnotation.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/core/SkDeviceProfile.h View 2 chunks +2 lines, -2 lines 0 comments Download
M include/core/SkFlattenable.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/core/SkPaint.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/core/SkScalerContext.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M include/gpu/GrClip.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/gpu/GrContext.h View 1 4 chunks +4 lines, -4 lines 0 comments Download
M include/gpu/GrContextFactory.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/gpu/GrPaint.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M include/gpu/GrProgramStageFactory.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M include/gpu/GrRenderTarget.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/gpu/GrTextContext.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/gpu/GrTexture.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/gpu/GrTypes.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M include/pdf/SkPDFDevice.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/pdf/SkPDFDocument.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/utils/SkJSON.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/views/SkOSWindow_Android.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/views/SkOSWindow_Mac.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/views/SkOSWindow_Unix.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/views/SkOSWindow_iOS.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/views/SkTouchGesture.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/animator/SkDisplayApply.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/animator/SkScript2.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkGlyphCache.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkPaint.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkPictureFlat.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkPicturePlayback.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkPictureRecord.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkLightingImageFilter.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkTableColorFilter.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrAAConvexPathRenderer.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrBufferAllocPool.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrClipMaskManager.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrDrawState.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrGpu.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrMemoryPool.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrPathRendererChain.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrResourceCache.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrStencil.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrTextContext.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrTexture.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/effects/Gr1DKernelEffect.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/effects/GrConvolutionEffect.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLCaps.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGLProgram.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLProgramStage.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLSL.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLShaderVar.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGLTexture.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGpuGL.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pdf/SkPDFStream.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pdf/SkPDFUtils.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pipe/SkGPipePriv.h View 1 4 chunks +4 lines, -4 lines 0 comments Download
M src/pipe/SkGPipeWrite.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkFontDescriptor.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkFontHost_win.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/utils/ios/SkFontHost_iOS.mm View 1 2 chunks +2 lines, -2 lines 0 comments Download
M tests/WritePixelsTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13
gw280
13 years, 5 months ago (2012-07-19 22:04:47 UTC) #1
reed1
Committed revision 4686. Can you update the .gyp files so that we see this warning ...
13 years, 5 months ago (2012-07-20 11:36:31 UTC) #2
bungeman
On the one hand I understand this change, the trailing comma in enums is not ...
13 years, 5 months ago (2012-07-20 14:29:46 UTC) #3
TomH
We actually have external users still on compilers that don't permit it. (I can't remember ...
13 years, 5 months ago (2012-07-20 14:55:20 UTC) #4
gw280
On 2012/07/20 14:55:20, TomH wrote: > We actually have external users still on compilers that ...
13 years, 5 months ago (2012-07-20 15:07:09 UTC) #5
bungeman
If we really want this we would need to do all of them, add the ...
13 years, 5 months ago (2012-07-20 15:57:30 UTC) #6
gw280
On 2012/07/20 15:57:30, bungeman wrote: > If we really want this we would need to ...
13 years, 5 months ago (2012-07-20 18:26:17 UTC) #7
TomH
Over a discussion at lunch, multiple Skia devs objected to turning on -pedantic. We should ...
13 years, 5 months ago (2012-07-20 18:27:45 UTC) #8
gw280
On 2012/07/20 18:27:45, TomH wrote: > Over a discussion at lunch, multiple Skia devs objected ...
13 years, 5 months ago (2012-07-20 18:33:16 UTC) #9
bsalomon
On 2012/07/20 18:33:16, gwright wrote: > On 2012/07/20 18:27:45, TomH wrote: > > Over a ...
13 years, 5 months ago (2012-07-20 18:50:49 UTC) #10
bungeman
This CL (Patch Set 2) appears to be missing what would be a required change ...
13 years, 5 months ago (2012-07-20 19:43:53 UTC) #11
gw280
On 2012/07/20 19:43:53, bungeman wrote: > This CL (Patch Set 2) appears to be missing ...
13 years, 5 months ago (2012-07-20 20:15:04 UTC) #12
reed1
13 years, 5 months ago (2012-07-20 20:32:13 UTC) #13
my 2-cents:

fixing trailing commas seems useful it we're breaking a compiler somewhere,
independent (somewhat) if we want to turn-on pedantic warnings. I know we can
regress if we don't have pedantic turned on, but fixing now is a start. Hell, we
could try running Ben's script as part of our Housekeeping pass, to detect
regression w/o using the compiler...
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b