]> granicus.if.org Git - clang/commit
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)
commitac200add36b40904bae8bbe7070e60c7f60b7c35
treec3749eb0b70ec64d73d88348efbaa03589990c40
parentddd39efaedfdebb02425a4483f6ecd4a5d35866e
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255311 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticLexKinds.td
lib/Lex/PPDirectives.cpp
test/Lexer/objc_macros.m [new file with mode: 0644]