]> granicus.if.org Git - clang/commitdiff
Added 'atomic' for objc properties.
authorFariborz Jahanian <fjahanian@apple.com>
Sat, 11 Jun 2011 17:37:19 +0000 (17:37 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Sat, 11 Jun 2011 17:37:19 +0000 (17:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132879 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/DeclPrinter.cpp

index de1b6108baf6ff301df1f3dd43c45653b5c6f037..421770ea70fbe0810b8914420acccd9a5881cc3b 100644 (file)
@@ -943,6 +943,11 @@ void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) {
     Out << (first ? ' ' : ',') << "nonatomic";
     first = false;
   }
+  if (PDecl->getPropertyAttributes() &
+      ObjCPropertyDecl::OBJC_PR_atomic) {
+    Out << (first ? ' ' : ',') << "atomic";
+    first = false;
+  }
   Out << " )";
   }
   Out << ' ' << PDecl->getType().getAsString(Policy) << ' ' << PDecl;