From f33b1e8ad7daec1f382a28e9565744cd7f795384 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132879 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/DeclPrinter.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/AST/DeclPrinter.cpp b/lib/AST/DeclPrinter.cpp index de1b6108ba..421770ea70 100644 --- a/lib/AST/DeclPrinter.cpp +++ b/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; -- 2.40.0