[LLVMbugs] [Bug 10427] clang should warn if a macro argument expansion is "obviously" missing parentheses
    bugzilla-daemon at llvm.org 
    bugzilla-daemon at llvm.org
       
    Wed Jul 20 22:47:01 PDT 2011
    
    
  
http://llvm.org/bugs/show_bug.cgi?id=10427
Chris Lattner <clattner at apple.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX
--- Comment #1 from Chris Lattner <clattner at apple.com> 2011-07-21 00:47:01 CDT ---
That would be really cool, but no, not going to do this.  Doing so would
require a lot of gymnastics that are just not worth doing in the preprocessor. 
Notably, when parsing the #define itself, we don't and can't actually parse the
code to know that that is a cast of a macro argument.
-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
    
    
More information about the llvm-bugs
mailing list