<?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>155049</bug_id>
          
          <creation_ts>2016-03-04 14:53:51 -0800</creation_ts>
          <short_desc>[CMake] Enable -Wsuggest-override</short_desc>
          <delta_ts>2016-03-06 02:43:58 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>annulen</cc>
    
    <cc>darin</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>mrobinson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1171067</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-03-04 14:53:51 -0800</bug_when>
    <thetext>To help enforce our new coding style, we should enable -Wsuggest-override in WEBKIT_SET_EXTRA_COMPILER_FLAGS:

       -Wsuggest-override
           Warn about overriding virtual functions that are not marked with
           the override keyword.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1171070</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-03-04 14:57:23 -0800</bug_when>
    <thetext>However we should investigate if this warning is triggered when using &apos;final&apos; instead of &apos;override&apos;, as Darin is suggesting that we use &apos;final&apos; whenever possible [1]. He has some convincing reasons in his follow-up post. If that would trip up -Wsuggest-override then we should probably WONTFIX this.

[1] https://lists.webkit.org/pipermail/webkit-dev/2016-March/028018.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1171236</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-03-05 12:06:15 -0800</bug_when>
    <thetext>We probably want this on for iOS and Mac too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1171252</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-03-05 13:26:50 -0800</bug_when>
    <thetext>Apparently Clang doesn&apos;t have this warning, it&apos;s GCC-only. :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1171402</commentid>
    <comment_count>4</comment_count>
    <who name="Konstantin Tokarev">annulen</who>
    <bug_when>2016-03-06 02:31:39 -0800</bug_when>
    <thetext>Clang provides similar -Winconsistent-missing-override, which is included in -Wall. However, it is issued only when class already has at least one method with &apos;override&apos; specifier.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1171403</commentid>
    <comment_count>5</comment_count>
    <who name="Konstantin Tokarev">annulen</who>
    <bug_when>2016-03-06 02:43:58 -0800</bug_when>
    <thetext>BTW, it looks like -Wsuggest-override is not just GCC-only, but requires GCC 5.1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>