Add -Wcustom-atomic-properties which warns if an atomic-by-default property has custo...
commitc7e590ec56fa3dd508f139ab34697d3fe841f139
authorArgiris Kirtzidis <akyrtzi@gmail.com>
Mon, 31 Jan 2011 21:34:11 +0000 (31 21:34 +0000)
committerArgiris Kirtzidis <akyrtzi@gmail.com>
Mon, 31 Jan 2011 21:34:11 +0000 (31 21:34 +0000)
tree18004743734cf0bfe0e5f32e1f596df273c94718
parente623959b13974c9ef1b87f77621ba0e549f6f68c
Add -Wcustom-atomic-properties which warns if an atomic-by-default property has custom getter or setter.

The rationale is that it is highly likely that the user's getter/setter isn't atomically implemented. Off by default.
Addresses rdar://8782645.

-Wcustom-atomic-properties and -Wimplicit-atomic-properties are under the -Watomic-properties group.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124609 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaObjCProperty.cpp
test/SemaObjC/custom-atomic-property.m [new file with mode: 0644]