RESOLVED FIXED 134209
[Win] Clean up and refactor WinLauncher
https://bugs.webkit.org/show_bug.cgi?id=134209
Summary [Win] Clean up and refactor WinLauncher
Brent Fulgham
Reported 2014-06-23 12:41:47 PDT
WinLauncher is a bit of a mess, with tons of global variables and potentially buggy memory handling. Clean this up to take advantage of our various smart pointers, and refactor into a class that can be subclassed for use in other tools.
Attachments
Patch (104.53 KB, patch)
2014-06-23 17:15 PDT, Brent Fulgham
no flags
Patch (105.00 KB, patch)
2014-06-23 17:21 PDT, Brent Fulgham
thorton: review+
Brent Fulgham
Comment 1 2014-06-23 17:15:03 PDT
WebKit Commit Bot
Comment 2 2014-06-23 17:16:15 PDT
Attachment 233657 [details] did not pass style-queue: ERROR: Tools/WinLauncher/WinLauncherWebHost.h:34: This { should be at the end of the previous line [whitespace/braces] [4] ERROR: Tools/WinLauncher/WinLauncherWebHost.cpp:29: Found other header before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] ERROR: Tools/WinLauncher/WinLauncherWebHost.cpp:30: Found header this file implements after other header. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] ERROR: Tools/WinLauncher/Common.cpp:425: Multi line control clauses should use braces. [whitespace/braces] [4] ERROR: Tools/WinLauncher/WinMain.cpp:29: Alphabetical sorting problem. [build/include_order] [4] ERROR: Tools/WinLauncher/DOMDefaultImpl.cpp:28: Found other header before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] ERROR: Tools/WinLauncher/DOMDefaultImpl.cpp:29: Found header this file implements after other header. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] Total errors found: 7 in 10 files If any of these errors are false positives, please file a bug against check-webkit-style.
Brent Fulgham
Comment 3 2014-06-23 17:21:35 PDT
WebKit Commit Bot
Comment 4 2014-06-23 17:23:44 PDT
Attachment 233659 [details] did not pass style-queue: ERROR: Tools/WinLauncher/WinLauncherWebHost.cpp:29: Found other header before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] ERROR: Tools/WinLauncher/WinLauncherWebHost.cpp:30: Found header this file implements after other header. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] ERROR: Tools/WinLauncher/Common.cpp:425: Multi line control clauses should use braces. [whitespace/braces] [4] ERROR: Tools/WinLauncher/WinMain.cpp:29: Alphabetical sorting problem. [build/include_order] [4] ERROR: Tools/WinLauncher/DOMDefaultImpl.cpp:28: Found other header before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] ERROR: Tools/WinLauncher/DOMDefaultImpl.cpp:29: Found header this file implements after other header. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] Total errors found: 6 in 10 files If any of these errors are false positives, please file a bug against check-webkit-style.
Brent Fulgham
Comment 5 2014-06-23 17:26:09 PDT
(In reply to comment #4) > Attachment 233659 [details] did not pass style-queue: > > > ERROR: Tools/WinLauncher/WinLauncherWebHost.cpp:29: Found other header before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] > ERROR: Tools/WinLauncher/WinLauncherWebHost.cpp:30: Found header this file implements after other header. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] These are correct. check-webkit-style should handle "stdafx.h" properly. > ERROR: Tools/WinLauncher/Common.cpp:425: Multi line control clauses should use braces. [whitespace/braces] [4] It does. This code seems to confuse the style checker. It's been this way for years (I just copied to a new file). > ERROR: Tools/WinLauncher/WinMain.cpp:29: Alphabetical sorting problem. [build/include_order] [4] This is correct. check-webkit-style should handle "stdafx.h" properly. > ERROR: Tools/WinLauncher/DOMDefaultImpl.cpp:28: Found other header before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] > ERROR: Tools/WinLauncher/DOMDefaultImpl.cpp:29: Found header this file implements after other header. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] These are correct. check-webkit-style should handle "stdafx.h" properly.
Tim Horton
Comment 6 2014-06-23 17:30:38 PDT
Comment on attachment 233659 [details] Patch rs=me
Brent Fulgham
Comment 7 2014-06-23 17:52:24 PDT
Daniel Bates
Comment 8 2014-06-23 22:28:13 PDT
For completeness, Brent Fulgham attempted to fix the build in <http://trac.webkit.org/changeset/170340>.
Daniel Bates
Comment 10 2014-06-23 22:44:51 PDT
(In reply to comment #9) > (In reply to comment #7) > > Committed r170339: <http://trac.webkit.org/changeset/170339> > > This broke the Apple Windows Debug and Release builds. > I'm going to rollout both <http://trac.webkit.org/changeset/170340> and <http://trac.webkit.org/changeset/170339>. Looking at the standard output from the bots, the bots are complaining that we're missing file WinLauncher.h, which I assume will have the class definition for WinLauncher. While I could attempt to write out a file WinLauncher.h with a class definition based on WinLauncher.cpp, I suspect Brent Fulgham has such a file and that it would be straightforward to land it when landing the changes again.
Brent Fulgham
Comment 12 2014-06-24 09:20:40 PDT
(In reply to comment #10) > (In reply to comment #9) > > (In reply to comment #7) > > > Committed r170339: <http://trac.webkit.org/changeset/170339> > > > > This broke the Apple Windows Debug and Release builds. > > > I'm going to rollout both <http://trac.webkit.org/changeset/170340> and <http://trac.webkit.org/changeset/170339>. > > Looking at the standard output from the bots, the bots are complaining that we're missing file WinLauncher.h, which I assume will have the class definition for WinLauncher. This was caused by some svn mistakes on my part. WinLauncher.h was moved to WinLauncherWebHost.h, and then a new WinLauncher.h was added. This got munged up during my svn manipulations, which caused the archive version of the file to be wrong. This should correct that. Landed in <http://trac.webkit.org/changeset/170365>
Note You need to log in before you can comment on or make changes to this bug.