[LLVMbugs] [Bug 15079] New: LLVM header files cause parse errors when compiling Objective-C++/Cocoa project

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jan 26 20:32:00 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=15079

             Bug #: 15079
           Summary: LLVM header files cause parse errors when compiling
                    Objective-C++/Cocoa project
           Product: new-bugs
           Version: 3.2
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jlstrecker.bugzilla at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Objective-C++ code that includes both the Cocoa framework and the LLVM header
files fails to compile. The problem is that certain function and variable names
in the C++ LLVM source code conflict with macros defined on the Objective-C
side. 

 - CommandLine.h: The variable `NO` conflicts with Objective-C's `NO` macro. 

 - CommandLine.h: The function `check` conflicts with the `check` macro in
AssertMacros.h. 

 - IntegersSubsetMapping.h: The function `verify` conflicts with the `verify`
macro in AssertMacros.h. 

For a workaround, see
http://stackoverflow.com/questions/14527423/including-c-header-files-in-objective-c-when-they-conflict-with-objective-c

In addition to fixing these individual errors, maybe using LLVM in an
Objective-C++/Cocoa project could be added to the test process.

-- 
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