Bug 62215 - Make style/checkers/cpp.py allow comparisons with 0 in LIKELY and UNLIKELY
Summary: Make style/checkers/cpp.py allow comparisons with 0 in LIKELY and UNLIKELY
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-07 09:00 PDT by Dmitry Lomov
Modified: 2011-06-07 12:55 PDT (History)
3 users (show)

See Also:


Attachments
Fix + unit-test (2.47 KB, patch)
2011-06-07 10:40 PDT, Dmitry Lomov
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Lomov 2011-06-07 09:00:46 PDT
cpp_style.py does not currenly allow

if (LIKELY(ptr != 0)) ....
Comment 1 Dmitry Lomov 2011-06-07 10:40:10 PDT
Created attachment 96259 [details]
Fix + unit-test
Comment 2 WebKit Review Bot 2011-06-07 12:55:15 PDT
Comment on attachment 96259 [details]
Fix + unit-test

Clearing flags on attachment: 96259

Committed r88256: <http://trac.webkit.org/changeset/88256>
Comment 3 WebKit Review Bot 2011-06-07 12:55:19 PDT
All reviewed patches have been landed.  Closing bug.