From 8086dfc7d48d83cfe12f7e709d90d47d96738ed4 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Sat, 11 Jun 2011 17:37:19 +0000 Subject: [PATCH] Added 'atomic' for objc properties. llvm-svn: 132879 --- clang/lib/AST/DeclPrinter.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clang/lib/AST/DeclPrinter.cpp b/clang/lib/AST/DeclPrinter.cpp index de1b6108baf6..421770ea70fb 100644 --- a/clang/lib/AST/DeclPrinter.cpp +++ b/clang/lib/AST/DeclPrinter.cpp @@ -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;