Bug 89942

Summary: Add style check to protect against bad #ifdef usage
Product: WebKit Reporter: Shawn Singh <shawnsingh>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: jamesr, shawnsingh
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Shawn Singh
Reported 2012-06-25 22:17:40 PDT
For example, https://bugs.webkit.org/show_bug.cgi?id=89931 - #ifdef and #if have different behavior if a preprocessor symbol is defined, but its value is "false". To protect against this, one option is to create a style check that complains if someone uses #ifdef with a preprocessor symbol that actually has a value. What other options should we consider for making a style check about this?
Attachments
Shawn Singh
Comment 1 2013-04-08 15:58:14 PDT
bug is obsolete
Note You need to log in before you can comment on or make changes to this bug.