[Modules] Teach Clang to survive ambiguous macros which come from systemheaders even if they arrived when merging non-system modules.The idea of this code is that we don't want to warn the user ab
[Modules] Teach Clang to survive ambiguous macros which come from systemheaders even if they arrived when merging non-system modules.The idea of this code is that we don't want to warn the user aboutmacros defined multiple times by their system headers with slightlydifferent definitions. We should have this behavior if either themacro comes from a system module, or the definition within the modulecomes from a system header. Previously, we would warn on ambiguousmacros being merged when they came from a users modules even though theyonly showed up via system headers.By surviving this we can handle common system header macro differenceslike differing 'const' qualification of pointers due to some headerspredating 'const' being valid in C code, even when those systems headersare pre-built into a system module.Differential Revision: http://reviews.llvm.org/D8310llvm-svn: 232149
show more ...