<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>173582</bug_id>
          
          <creation_ts>2017-06-19 22:03:51 -0700</creation_ts>
          <short_desc>[WTF] Rebaseline std::optional</short_desc>
          <delta_ts>2017-06-23 10:37:12 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yusuke Suzuki">ysuzuki</reporter>
          <assigned_to name="Yusuke Suzuki">ysuzuki</assigned_to>
          <cc>benjamin</cc>
    
    <cc>buildbot</cc>
    
    <cc>cdumez</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>commit-queue</cc>
    
    <cc>darin</cc>
    
    <cc>dbates</cc>
    
    <cc>jfbastien</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1320978</commentid>
    <comment_count>0</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2017-06-19 22:03:51 -0700</bug_when>
    <thetext>[WTF] Rebaseline std::optional</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1320979</commentid>
    <comment_count>1</comment_count>
      <attachid>313363</attachid>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2017-06-19 22:04:48 -0700</bug_when>
    <thetext>Created attachment 313363
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1320980</commentid>
    <comment_count>2</comment_count>
    <who name="Build Bot">buildbot</who>
    <bug_when>2017-06-19 22:06:04 -0700</bug_when>
    <thetext>Attachment 313363 did not pass style-queue:


ERROR: Source/WTF/wtf/Optional.h:539:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:653:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:654:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:752:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:754:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:762:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:763:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 7 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1320981</commentid>
    <comment_count>3</comment_count>
      <attachid>313363</attachid>
    <who name="JF Bastien">jfbastien</who>
    <bug_when>2017-06-19 22:07:25 -0700</bug_when>
    <thetext>Comment on attachment 313363
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1320985</commentid>
    <comment_count>4</comment_count>
      <attachid>313363</attachid>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2017-06-19 22:08:35 -0700</bug_when>
    <thetext>Comment on attachment 313363
Patch

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1321038</commentid>
    <comment_count>5</comment_count>
      <attachid>313363</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-06-20 00:39:24 -0700</bug_when>
    <thetext>Comment on attachment 313363
Patch

Clearing flags on attachment: 313363

Committed r218557: &lt;http://trac.webkit.org/changeset/218557&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1321039</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-06-20 00:39:26 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1322269</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-06-23 05:27:14 -0700</bug_when>
    <thetext>So it&apos;s 2017, why do we still need our own std::optional? Is it for GCC 4.9?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1322270</commentid>
    <comment_count>8</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2017-06-23 05:31:53 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #7)
&gt; So it&apos;s 2017, why do we still need our own std::optional? Is it for GCC 4.9?

We are now using C++14, which does not include std::optional.
I think we can start discussion about upgrading this baseline.
But, at that time, we need to rely on newer GCC.

I think the current GCC baseline in WebKit is 4.9. Can we upgrade this?
If we can do that, we can start considering adopting C++17!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1322273</commentid>
    <comment_count>9</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2017-06-23 05:36:32 -0700</bug_when>
    <thetext>(In reply to Yusuke Suzuki from comment #8)
&gt; (In reply to Michael Catanzaro from comment #7)
&gt; &gt; So it&apos;s 2017, why do we still need our own std::optional? Is it for GCC 4.9?
&gt; 
&gt; We are now using C++14, which does not include std::optional.
&gt; I think we can start discussion about upgrading this baseline.
&gt; But, at that time, we need to rely on newer GCC.
&gt; 
&gt; I think the current GCC baseline in WebKit is 4.9. Can we upgrade this?
&gt; If we can do that, we can start considering adopting C++17!

But, at that time, we also need to care about MSVC too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1322314</commentid>
    <comment_count>10</comment_count>
    <who name="JF Bastien">jfbastien</who>
    <bug_when>2017-06-23 09:32:22 -0700</bug_when>
    <thetext>(In reply to Yusuke Suzuki from comment #9)
&gt; (In reply to Yusuke Suzuki from comment #8)
&gt; &gt; (In reply to Michael Catanzaro from comment #7)
&gt; &gt; &gt; So it&apos;s 2017, why do we still need our own std::optional? Is it for GCC 4.9?
&gt; &gt; 
&gt; &gt; We are now using C++14, which does not include std::optional.
&gt; &gt; I think we can start discussion about upgrading this baseline.
&gt; &gt; But, at that time, we need to rely on newer GCC.
&gt; &gt; 
&gt; &gt; I think the current GCC baseline in WebKit is 4.9. Can we upgrade this?
&gt; &gt; If we can do that, we can start considering adopting C++17!
&gt; 
&gt; But, at that time, we also need to care about MSVC too.

Recent MSVCs are really good at being up to date. I know their PM and engineers as well, they&apos;re very happy to fix shortcomings (but that takes a while to get back to our toolchains!).

I was going to propose we adopt a subset of C++17 after it&apos;s been ratified at the next meeting, which is at the start of July. Of course we need to make sure that subset is available in all compilers! e.g. the parallel STL isn&apos;t available anywhere.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1322336</commentid>
    <comment_count>11</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2017-06-23 10:37:12 -0700</bug_when>
    <thetext>(In reply to JF Bastien from comment #10)
&gt; (In reply to Yusuke Suzuki from comment #9)
&gt; &gt; (In reply to Yusuke Suzuki from comment #8)
&gt; &gt; &gt; (In reply to Michael Catanzaro from comment #7)
&gt; &gt; &gt; &gt; So it&apos;s 2017, why do we still need our own std::optional? Is it for GCC 4.9?
&gt; &gt; &gt; 
&gt; &gt; &gt; We are now using C++14, which does not include std::optional.
&gt; &gt; &gt; I think we can start discussion about upgrading this baseline.
&gt; &gt; &gt; But, at that time, we need to rely on newer GCC.
&gt; &gt; &gt; 
&gt; &gt; &gt; I think the current GCC baseline in WebKit is 4.9. Can we upgrade this?
&gt; &gt; &gt; If we can do that, we can start considering adopting C++17!
&gt; &gt; 
&gt; &gt; But, at that time, we also need to care about MSVC too.
&gt; 
&gt; Recent MSVCs are really good at being up to date. I know their PM and
&gt; engineers as well, they&apos;re very happy to fix shortcomings (but that takes a
&gt; while to get back to our toolchains!).

That sounds super nice!

&gt; 
&gt; I was going to propose we adopt a subset of C++17 after it&apos;s been ratified
&gt; at the next meeting, which is at the start of July. Of course we need to
&gt; make sure that subset is available in all compilers! e.g. the parallel STL
&gt; isn&apos;t available anywhere.

It is very nice. After that, I think we can start updating GCC version.
Posted. https://lists.webkit.org/pipermail/webkit-dev/2017-June/029220.html</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>313363</attachid>
            <date>2017-06-19 22:04:48 -0700</date>
            <delta_ts>2017-06-20 00:39:24 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-173582-20170620140447.patch</filename>
            <type>text/plain</type>
            <size>2309</size>
            <attacher name="Yusuke Suzuki">ysuzuki</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjE4NTMxCmRpZmYgLS1naXQgYS9Tb3VyY2UvV1RGL0NoYW5n
ZUxvZyBiL1NvdXJjZS9XVEYvQ2hhbmdlTG9nCmluZGV4IDg0MTA2NWNiZmM5YzA3ZGVjMjNmNmRl
NmNlYjAyMTgwODEyN2U2ZjYuLjQwZGNiMWQzNzMyYWM2MjRkYWZlOWMxODI4NmNkYmM3NTBhMWRm
MTQgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9XVEYvQ2hhbmdlTG9nCisrKyBiL1NvdXJjZS9XVEYvQ2hh
bmdlTG9nCkBAIC0xLDMgKzEsMTUgQEAKKzIwMTctMDYtMTkgIFl1c3VrZSBTdXp1a2kgIDx1dGF0
YW5lLnRlYUBnbWF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