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

Issue 1299963002: Extern in .cpp files is a code smell. (Closed)

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

Description

Extern in .cpp files is a code smell. Part 1. Move to headers so compiler can type check against the definitions. R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/71c15a5e6652952a94ba3a3ef7ac0392e3a06962

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -72 lines) Patch
M BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M core/include/fpdfapi/fpdf_parser.h View 2 chunks +10 lines, -0 lines 0 comments Download
M core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp View 1 chunk +2 lines, -13 lines 1 comment Download
M core/src/fpdfapi/fpdf_font/font_int.h View 1 chunk +3 lines, -0 lines 0 comments Download
M core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M core/src/fpdftext/unicodenormalization.cpp View 1 chunk +8 lines, -8 lines 1 comment Download
A core/src/fpdftext/unicodenormalizationdata.h View 1 chunk +18 lines, -0 lines 0 comments Download
M core/src/fpdftext/unicodenormalizationdata.cpp View 5 chunks +11 lines, -5 lines 0 comments Download
M core/src/fxge/fontdata/chromefontdata/FoxitDingbats.c View 1 chunk +2 lines, -0 lines 0 comments Download
M core/src/fxge/fontdata/chromefontdata/FoxitFixed.c View 1 chunk +2 lines, -0 lines 0 comments Download
M core/src/fxge/fontdata/chromefontdata/FoxitFixedBold.c View 1 chunk +2 lines, -0 lines 0 comments Download
M core/src/fxge/fontdata/chromefontdata/FoxitFixedBoldItalic.c View 1 chunk +2 lines, -0 lines 0 comments Download
M core/src/fxge/fontdata/chromefontdata/FoxitFixedItalic.c View 1 chunk +2 lines, -0 lines 0 comments Download
M core/src/fxge/fontdata/chromefontdata/FoxitSans.c View 1 chunk +2 lines, -0 lines 0 comments Download
M core/src/fxge/fontdata/chromefontdata/FoxitSansBold.c View 1 chunk +2 lines, -0 lines 0 comments Download
M core/src/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.c View 1 chunk +2 lines, -0 lines 0 comments Download
M core/src/fxge/fontdata/chromefontdata/FoxitSansItalic.c View 1 chunk +2 lines, -0 lines 0 comments Download
M core/src/fxge/fontdata/chromefontdata/FoxitSansMM.c View 1 chunk +2 lines, -0 lines 0 comments Download
M core/src/fxge/fontdata/chromefontdata/FoxitSerif.c View 1 chunk +2 lines, -0 lines 0 comments Download
M core/src/fxge/fontdata/chromefontdata/FoxitSerifBold.c View 1 chunk +2 lines, -0 lines 0 comments Download
M core/src/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.c View 1 chunk +2 lines, -0 lines 0 comments Download
M core/src/fxge/fontdata/chromefontdata/FoxitSerifItalic.c View 1 chunk +2 lines, -0 lines 0 comments Download
M core/src/fxge/fontdata/chromefontdata/FoxitSerifMM.c View 1 chunk +2 lines, -0 lines 0 comments Download
M core/src/fxge/fontdata/chromefontdata/FoxitSymbol.c View 1 chunk +2 lines, -0 lines 0 comments Download
A core/src/fxge/fontdata/chromefontdata/chromefontdata.h View 1 chunk +35 lines, -0 lines 0 comments Download
M core/src/fxge/ge/fx_ge_fontmap.cpp View 2 chunks +1 line, -18 lines 0 comments Download
M fpdfsdk/include/fsdk_define.h View 1 chunk +3 lines, -0 lines 0 comments Download
M fpdfsdk/src/fpdf_dataavail.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M fpdfsdk/src/fpdftext.cpp View 1 chunk +0 lines, -3 lines 0 comments Download
M fpdfsdk/src/fpdfview.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M fpdfsdk/src/fsdk_mgr.cpp View 1 chunk +0 lines, -7 lines 0 comments Download
M fpdfsdk/src/javascript/global.cpp View 1 chunk +8 lines, -9 lines 0 comments Download
M pdfium.gyp View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Tom Sepez
Lei, for review. These all seem to line up at link time, but there's no ...
5 years, 4 months ago (2015-08-18 18:47:30 UTC) #1
Tom Sepez
Adding reviewer.
5 years, 4 months ago (2015-08-18 19:05:57 UTC) #3
Lei Zhang
lgtm https://codereview.chromium.org/1299963002/diff/1/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp File core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp (right): https://codereview.chromium.org/1299963002/diff/1/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp#newcode9 core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp:9: #include "../../../include/fpdfapi/fpdf_parser.h" alphabetical order https://codereview.chromium.org/1299963002/diff/1/core/src/fpdftext/unicodenormalization.cpp File core/src/fpdftext/unicodenormalization.cpp (right): ...
5 years, 4 months ago (2015-08-18 22:24:19 UTC) #4
Lei Zhang
CL description: s/chan/can/
5 years, 4 months ago (2015-08-18 22:25:56 UTC) #5
Tom Sepez
5 years, 4 months ago (2015-08-19 17:28:54 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
71c15a5e6652952a94ba3a3ef7ac0392e3a06962 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698