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

Issue 2067903002: Make code compile with clang_use_chrome_plugin (part III) (Closed)

Created:
4 years, 6 months ago by Wei Li
Modified:
4 years, 6 months ago
Reviewers:
Lei Zhang, dsinclair
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Make code compile with clang_use_chrome_plugin (part III) This change contains files in xfa/fxbarcode directory. This is part of the efforts to make PDFium code compilable by Clang chromium style plugins. The changes are mainly the following: -- move inline constructor/destructor of complex class/struct out-of-line; -- add constructor/destructor of complex class/struct if not explicitly defined; -- add explicit out-of-line copy constructor when needed; -- move inline virtual functions out-of-line; -- Properly mark virtual functions with 'override'; -- some minor cleanups; BUG=pdfium:469 Committed: https://pdfium.googlesource.com/pdfium/+/29b8ad0b130ec6ed4f72ebd0c0a4f9e6a5b03467

Patch Set 1 #

Patch Set 2 : fixes #

Patch Set 3 : fix typo #

Patch Set 4 : fix comments #

Total comments: 12

Patch Set 5 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+524 lines, -273 lines) Patch
M xfa/fxbarcode/BC_Binarizer.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/BC_BinaryBitmap.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/BC_BufferedImageLuminanceSource.h View 1 1 chunk +5 lines, -3 lines 0 comments Download
M xfa/fxbarcode/BC_BufferedImageLuminanceSource.cpp View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M xfa/fxbarcode/BC_DecoderResult.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/BC_TwoDimWriter.h View 2 chunks +3 lines, -2 lines 0 comments Download
M xfa/fxbarcode/BC_TwoDimWriter.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M xfa/fxbarcode/cbc_codabar.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxbarcode/cbc_codabar.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M xfa/fxbarcode/cbc_code128.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxbarcode/cbc_code128.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M xfa/fxbarcode/cbc_code39.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxbarcode/cbc_code39.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M xfa/fxbarcode/cbc_datamatrix.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxbarcode/cbc_datamatrix.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M xfa/fxbarcode/cbc_ean13.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxbarcode/cbc_ean13.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M xfa/fxbarcode/cbc_ean8.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxbarcode/cbc_ean8.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M xfa/fxbarcode/cbc_pdf417i.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxbarcode/cbc_pdf417i.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M xfa/fxbarcode/cbc_qrcode.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxbarcode/cbc_qrcode.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M xfa/fxbarcode/cbc_upca.h View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fxbarcode/cbc_upca.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M xfa/fxbarcode/common/BC_CommonBitArray.h View 1 chunk +3 lines, -2 lines 0 comments Download
M xfa/fxbarcode/common/BC_CommonBitMatrix.h View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M xfa/fxbarcode/common/BC_CommonBitSource.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M xfa/fxbarcode/common/BC_CommonByteArray.h View 2 chunks +7 lines, -6 lines 0 comments Download
M xfa/fxbarcode/common/BC_CommonByteMatrix.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/common/BC_CommonCharacterSetECI.h View 1 chunk +2 lines, -2 lines 0 comments Download
M xfa/fxbarcode/common/BC_CommonDecoderResult.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/common/BC_CommonECI.h View 1 chunk +2 lines, -1 line 0 comments Download
M xfa/fxbarcode/common/BC_CommonPerspectiveTransform.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/common/BC_GlobalHistogramBinarizer.h View 1 1 chunk +6 lines, -3 lines 0 comments Download
M xfa/fxbarcode/common/BC_WhiteRectangleDetector.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M xfa/fxbarcode/datamatrix/BC_ASCIIEncoder.h View 1 chunk +5 lines, -3 lines 0 comments Download
M xfa/fxbarcode/datamatrix/BC_Base256Encoder.h View 1 chunk +5 lines, -3 lines 0 comments Download
M xfa/fxbarcode/datamatrix/BC_C40Encoder.h View 1 chunk +7 lines, -3 lines 0 comments Download
M xfa/fxbarcode/datamatrix/BC_DataMatrixBitMatrixParser.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/datamatrix/BC_DataMatrixDecodedBitStreamParser.h View 1 chunk +3 lines, -0 lines 0 comments Download
M xfa/fxbarcode/datamatrix/BC_DataMatrixDecoder.h View 1 chunk +2 lines, -0 lines 0 comments Download
M xfa/fxbarcode/datamatrix/BC_DataMatrixDetector.h View 1 3 chunks +5 lines, -6 lines 0 comments Download
M xfa/fxbarcode/datamatrix/BC_DataMatrixDetector.cpp View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M xfa/fxbarcode/datamatrix/BC_DataMatrixReader.h View 1 chunk +7 lines, -3 lines 0 comments Download
M xfa/fxbarcode/datamatrix/BC_DataMatrixReader.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/datamatrix/BC_DataMatrixSymbolInfo144.h View 1 chunk +2 lines, -2 lines 0 comments Download
M xfa/fxbarcode/datamatrix/BC_DataMatrixVersion.h View 1 3 chunks +5 lines, -16 lines 0 comments Download
M xfa/fxbarcode/datamatrix/BC_DataMatrixVersion.cpp View 1 1 chunk +19 lines, -0 lines 0 comments Download
M xfa/fxbarcode/datamatrix/BC_DataMatrixWriter.h View 1 chunk +9 lines, -6 lines 0 comments Download
M xfa/fxbarcode/datamatrix/BC_EdifactEncoder.h View 1 chunk +5 lines, -3 lines 0 comments Download
M xfa/fxbarcode/datamatrix/BC_Encoder.h View 1 chunk +2 lines, -0 lines 0 comments Download
M xfa/fxbarcode/datamatrix/BC_EncoderContext.h View 1 chunk +2 lines, -1 line 0 comments Download
M xfa/fxbarcode/datamatrix/BC_ErrorCorrection.h View 1 chunk +2 lines, -0 lines 0 comments Download
M xfa/fxbarcode/datamatrix/BC_HighLevelEncoder.h View 1 chunk +2 lines, -1 line 0 comments Download
M xfa/fxbarcode/datamatrix/BC_SymbolInfo.h View 1 chunk +2 lines, -1 line 0 comments Download
M xfa/fxbarcode/datamatrix/BC_SymbolShapeHint.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/datamatrix/BC_TextEncoder.h View 1 chunk +6 lines, -3 lines 0 comments Download
M xfa/fxbarcode/datamatrix/BC_X12Encoder.h View 1 chunk +7 lines, -5 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OneDReader.h View 1 chunk +9 lines, -8 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OneDReader.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OneDimReader.h View 2 chunks +10 lines, -10 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OneDimWriter.h View 1 3 chunks +30 lines, -37 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OneDimWriter.cpp View 1 2 4 chunks +24 lines, -0 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedCodaBarReader.h View 1 chunk +5 lines, -2 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedCodaBarWriter.h View 2 chunks +16 lines, -15 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedCode128Reader.h View 1 chunk +7 lines, -5 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedCode128Writer.h View 1 chunk +9 lines, -6 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedCode39Reader.h View 1 chunk +3 lines, -2 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedCode39Writer.h View 1 1 chunk +19 lines, -15 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedEAN13Reader.h View 1 2 3 4 2 chunks +8 lines, -8 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedEAN13Writer.h View 2 chunks +10 lines, -9 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedEAN8Reader.h View 1 chunk +2 lines, -2 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedEAN8Writer.h View 1 2 3 4 2 chunks +14 lines, -12 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedUPCAReader.h View 1 chunk +11 lines, -6 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedUPCAWriter.h View 2 chunks +9 lines, -10 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedUPCAWriter.cpp View 1 1 chunk +6 lines, -0 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417BarcodeMatrix.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417BarcodeMetadata.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417BarcodeRow.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417BoundingBox.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417Codeword.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417CodewordDecoder.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417Common.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417DecodedBitStreamParser.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417DetectionResult.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417DetectionResultRowIndicatorColumn.h View 1 chunk +2 lines, -1 line 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417Detector.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417Dimensions.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417ECErrorCorrection.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417ECModulusGF.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417ErrorCorrection.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417Reader.h View 1 chunk +8 lines, -3 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417ResultMetadata.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417ScanningDecoder.h View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417Writer.h View 1 1 chunk +6 lines, -2 lines 0 comments Download
M xfa/fxbarcode/qrcode/BC_QRAlignmentPattern.h View 1 chunk +7 lines, -3 lines 0 comments Download
M xfa/fxbarcode/qrcode/BC_QRCodeReader.h View 2 chunks +8 lines, -3 lines 0 comments Download
M xfa/fxbarcode/qrcode/BC_QRCodeWriter.h View 2 chunks +6 lines, -2 lines 0 comments Download
M xfa/fxbarcode/qrcode/BC_QRDataMask.cpp View 1 2 3 2 chunks +60 lines, -18 lines 0 comments Download
M xfa/fxbarcode/qrcode/BC_QRFinderPattern.h View 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
Wei Li
pls review, thanks
4 years, 6 months ago (2016-06-14 23:52:19 UTC) #4
Lei Zhang
https://codereview.chromium.org/2067903002/diff/60001/xfa/fxbarcode/common/BC_CommonBitMatrix.h File xfa/fxbarcode/common/BC_CommonBitMatrix.h (right): https://codereview.chromium.org/2067903002/diff/60001/xfa/fxbarcode/common/BC_CommonBitMatrix.h#newcode36 xfa/fxbarcode/common/BC_CommonBitMatrix.h:36: virtual void Init(int32_t dimension); You may want to move ...
4 years, 6 months ago (2016-06-15 00:04:30 UTC) #5
Wei Li
thanks https://codereview.chromium.org/2067903002/diff/60001/xfa/fxbarcode/common/BC_CommonBitMatrix.h File xfa/fxbarcode/common/BC_CommonBitMatrix.h (right): https://codereview.chromium.org/2067903002/diff/60001/xfa/fxbarcode/common/BC_CommonBitMatrix.h#newcode36 xfa/fxbarcode/common/BC_CommonBitMatrix.h:36: virtual void Init(int32_t dimension); On 2016/06/15 00:04:30, Lei ...
4 years, 6 months ago (2016-06-15 00:32:39 UTC) #6
Lei Zhang
lgtm
4 years, 6 months ago (2016-06-15 00:34:01 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2067903002/80001
4 years, 6 months ago (2016-06-15 01:19:30 UTC) #9
commit-bot: I haz the power
4 years, 6 months ago (2016-06-15 01:20:11 UTC) #11
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://pdfium.googlesource.com/pdfium/+/29b8ad0b130ec6ed4f72ebd0c0a4f9e6a5b0...

Powered by Google App Engine
This is Rietveld 408576698