Open llvmbot opened 11 years ago
I don't see a file IntegersSubsetMapping.h in current trunk, so I think my earlier patch completely addresses this bug.
Patch CommandLine.h to allow inclusion within ObjC++ .mm files. I've checked that this doesn't introduce any regressions with 'make check-all'.
Extended Description
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'sNO
macro.CommandLine.h: The function
check
conflicts with thecheck
macro in AssertMacros.h.IntegersSubsetMapping.h: The function
verify
conflicts with theverify
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.