Bug 126771 - Web Inspector: use c++11 features in web-only agents
Summary: Web Inspector: use c++11 features in web-only agents
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-01-10 12:18 PST by BJ Burg
Modified: 2014-08-01 14:19 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BJ Burg 2014-01-10 12:18:05 PST
This has been annoying me. :)
Comment 1 Radar WebKit Bug Importer 2014-01-10 12:22:42 PST
<rdar://problem/15794772>
Comment 2 Timothy Hatcher 2014-01-10 12:30:07 PST
Joe fixed InspectorAgent in bug 126763 when he moved it to JSC. No need to do that one, you will just conflict.
Comment 3 BJ Burg 2014-01-10 13:15:10 PST
Joe is handling this when moving stuff around to JSC.
Comment 4 Joseph Pecoraro 2014-01-10 13:17:42 PST
Yes, as I've been moving code down into JSC I've been making it sparkle. So nullptr, unique_ptr, some references, better whitespace, etc.

There is plenty of code that code be updated in WebCore though. InstrumentingAgents, any WebCore agent (so not Runtime/Debugger). I'll happily review a patch making these changes.
Comment 5 Joseph Pecoraro 2014-01-10 13:18:28 PST
Another big one that is annoying me: OVERRIDE, FINAL
Comment 6 Joseph Pecoraro 2014-01-10 14:20:07 PST
Another big one that is annoying me: ASCIILiteral
Comment 7 Joseph Pecoraro 2014-01-17 17:14:25 PST
With Anders help I was about to get clang-modernize working. With that we can automate adding "override" where it is needed and using "nullptr".

It makes a bunch of changes:

    Transform: AddOverride - Accepted: 1488
    Transform: UseNullptr - Accepted: 267

Though I should first let Brian's more involved Reference change land first.
Comment 8 Joseph Pecoraro 2014-01-20 13:30:59 PST
Fixed nullptr and override with:
<https://webkit.org/b/127206> Modernize WebCore/inspector with override
<https://webkit.org/b/127303> Modernize WebCore/inspector with nullptr
Comment 9 Joseph Pecoraro 2014-08-01 14:19:38 PDT
Pretty sure this is fixed, right? nullptr, override, final, lots of unique_ptr. We can file new bugs about other things (ASCIILiteral, References).