<?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>32125</bug_id>
          
          <creation_ts>2009-12-03 11:01:35 -0800</creation_ts>
          <short_desc>[check-webkit-style] strcmp should be excepted from readability/comparison_to_zero</short_desc>
          <delta_ts>2009-12-16 21:13:18 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Adam Barth">abarth</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>levin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>168462</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2009-12-03 11:01:35 -0800</bug_when>
    <thetext>Comment #7 From WebKit Review Bot 2009-12-03 10:36:46 PST (-) [reply] 
Attachment 44255 [details] did not pass style-queue:

Failed to run &quot;WebKitTools/Scripts/check-webkit-style&quot; exit_code: 1
WebCore/platform/KURL.cpp:637:  Tests for true/false, null/non-null, and
zero/non-zero should all be done without equality comparisons. 
[readability/comparison_to_zero] [5]
Total errors found: 1

 Comment #8 From Alexey Proskuryakov 2009-12-03 10:41:21 PST (-) [reply] 
I think that strcmp comparisons should be an exception to the rule, but I can
change this when landing if a reviewer tells me to.

https://bugs.webkit.org/show_bug.cgi?id=32085#c8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>168471</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-12-03 11:12:41 -0800</bug_when>
    <thetext>We should probably discuss this on webkit-dev first, as the current rules don&apos;t allow for such exception.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>172453</commentid>
    <comment_count>2</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2009-12-16 12:11:03 -0800</bug_when>
    <thetext>It has been two week with no discussion on webkit-dev to approve this, so I&apos;m resolving as this bug as invalid.

Feel free to reactivate if that discussion happens and this is approved.

fwiw, I like comparing to 0/NULL for all appropriate items, but it is WebKit style to not to do this and !a is logically equivalent to a == 0 so that&apos;s that :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>172631</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-12-16 21:13:18 -0800</bug_when>
    <thetext>I e-mailed webkit-dev now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>