]> granicus.if.org Git - clang/commit
Add -Wcustom-atomic-properties which warns if an atomic-by-default property has custo...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 31 Jan 2011 21:34:11 +0000 (21:34 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 31 Jan 2011 21:34:11 +0000 (21:34 +0000)
commit94659e4bdb87534f591ae185812548c42d6efacb
tree18004743734cf0bfe0e5f32e1f596df273c94718
parent4c551b63c42d0b771a13252eab0e85947b1ee54c
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]