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

Issue 2829853010: Remove some illegal enum forward declarations (Closed)

Created:
3 years, 8 months ago by brucedawson
Modified:
3 years, 8 months ago
Reviewers:
jschuh
CC:
chromium-reviews, jam, pennymac+watch_chromium.org, darin-cc_chromium.org, wfh+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove some illegal enum forward declarations C++ forbids the forward declaring of enums without specifying a size because the size is not known. Specifying the size in multiple places is dangerous. So, this change removes the forward declarations and instead includes the required header files, except where one case where the forward declaration is unavoidable. These problems were found with the C4471 option, enabled with /w14471. R=jschuh@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win10_chromium_x64_rel_ng Review-Url: https://codereview.chromium.org/2829853010 Cr-Commit-Position: refs/heads/master@{#466628} Committed: https://chromium.googlesource.com/chromium/src/+/a85fa6ea57acf1e6d8b3a13f1dc9b9754c2ec89b

Patch Set 1 #

Patch Set 2 : Add back *one* forward declaration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -17 lines) Patch
M sandbox/win/sandbox_poc/main_ui_window.h View 1 chunk +0 lines, -1 line 0 comments Download
M sandbox/win/src/filesystem_policy.h View 1 chunk +0 lines, -2 lines 0 comments Download
M sandbox/win/src/interception.h View 1 chunk +1 line, -1 line 0 comments Download
M sandbox/win/src/interception_internal.h View 1 chunk +1 line, -2 lines 0 comments Download
M sandbox/win/src/named_pipe_policy.h View 1 chunk +0 lines, -2 lines 0 comments Download
M sandbox/win/src/process_mitigations_win32k_policy.h View 1 chunk +0 lines, -2 lines 0 comments Download
M sandbox/win/src/process_thread_policy.h View 1 chunk +0 lines, -2 lines 0 comments Download
M sandbox/win/src/registry_policy.h View 1 chunk +0 lines, -2 lines 0 comments Download
M sandbox/win/src/sandbox_types.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M sandbox/win/src/sync_policy.h View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (13 generated)
brucedawson
C++ conformance FTW. PTAL
3 years, 8 months ago (2017-04-22 22:08:35 UTC) #11
jschuh
lgtm
3 years, 8 months ago (2017-04-24 13:29:14 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2829853010/20001
3 years, 8 months ago (2017-04-24 13:29:39 UTC) #14
commit-bot: I haz the power
3 years, 8 months ago (2017-04-24 14:21:25 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/a85fa6ea57acf1e6d8b3a13f1dc9...

Powered by Google App Engine
This is Rietveld 408576698