In Objective-C, ignore attempts to redefine the ARC/GC qualifier macros.
authorJohn McCall <rjmccall@apple.com>
Thu, 10 Dec 2015 23:31:01 +0000 (23:31 +0000)
committerJohn McCall <rjmccall@apple.com>
Thu, 10 Dec 2015 23:31:01 +0000 (23:31 +0000)
commit83760378617dfa9670ce9439e9bfdcf2a5c81b90
tree3001c116d3d00bbc1df3fe26a74d4568f85a68c4
parent07206ea19dd55c8180d443a0d55a25bd67fb0858
In Objective-C, ignore attempts to redefine the ARC/GC qualifier macros.

This works around existing system headers which unconditionally
redefine these macros.

This is reasonably safe to do because we used to warn about it anyway
(outside of system headers).  Continue to warn if the redefinition
would have changed the expansion.  Still permit redefinition if the
macro is explicitly #undef'ed first.

rdar://23788307

llvm-svn: 255311
clang/include/clang/Basic/DiagnosticLexKinds.td
clang/lib/Lex/PPDirectives.cpp
clang/test/Lexer/objc_macros.m [new file with mode: 0644]