[cfe-commits] r132879 - /cfe/trunk/lib/AST/DeclPrinter.cpp
Fariborz Jahanian
fjahanian at apple.com
Sat Jun 11 10:37:19 PDT 2011
Author: fjahanian
Date: Sat Jun 11 12:37:19 2011
New Revision: 132879
URL: http://llvm.org/viewvc/llvm-project?rev=132879&view=rev
Log:
Added 'atomic' for objc properties.
Modified:
cfe/trunk/lib/AST/DeclPrinter.cpp
Modified: cfe/trunk/lib/AST/DeclPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclPrinter.cpp?rev=132879&r1=132878&r2=132879&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclPrinter.cpp (original)
+++ cfe/trunk/lib/AST/DeclPrinter.cpp Sat Jun 11 12:37:19 2011
@@ -943,6 +943,11 @@
Out << (first ? ' ' : ',') << "nonatomic";
first = false;
}
+ if (PDecl->getPropertyAttributes() &
+ ObjCPropertyDecl::OBJC_PR_atomic) {
+ Out << (first ? ' ' : ',') << "atomic";
+ first = false;
+ }
Out << " )";
}
Out << ' ' << PDecl->getType().getAsString(Policy) << ' ' << PDecl;
More information about the cfe-commits
mailing list