]> granicus.if.org Git - clang/commit
[objcmt] When whitelisting the headers we want to modify, allow changing the
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 11 Dec 2013 21:39:00 +0000 (21:39 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 11 Dec 2013 21:39:00 +0000 (21:39 +0000)
commit3b351f687a459210bee30dc60ba93ae207ad2040
treee4b99887cc3a4618d50d582811dbf7cf838445bf
parent7bc7ce16337747e71a07fb755b0b9d60e88aae8c
[objcmt] When whitelisting the headers we want to modify, allow changing the
the ObjC implementation declarations, just don't change implementations for
classes that are not in the whitelisted headers.

For example, if we change a method to return 'instancetype' we should also
update the method definition in the implementation.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197075 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ARCMigrate/ObjCMT.cpp
test/ARCMT/whitelisted/header1.h
test/ARCMT/whitelisted/header1.h.result
test/ARCMT/whitelisted/objcmt-with-whitelist-impl.m [new file with mode: 0644]
test/ARCMT/whitelisted/objcmt-with-whitelist-impl.m.result [new file with mode: 0644]
test/ARCMT/whitelisted/objcmt-with-whitelist.m