[cfe-commits] r150353 - /cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
Fariborz Jahanian
fjahanian at apple.com
Sun Feb 12 13:36:24 PST 2012
Author: fjahanian
Date: Sun Feb 12 15:36:23 2012
New Revision: 150353
URL: http://llvm.org/viewvc/llvm-project?rev=150353&view=rev
Log:
more of rewriting ivar types.
Modified:
cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
Modified: cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp?rev=150353&r1=150352&r2=150353&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp (original)
+++ cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp Sun Feb 12 15:36:23 2012
@@ -3174,9 +3174,13 @@
for (unsigned i = 0, e = IVars.size(); i < e; i++) {
ObjCIvarDecl *IvarDecl = IVars[i];
QualType Type = IvarDecl->getType();
- std::string TypeString(Type.getAsString(Context->getPrintingPolicy()));
+ std::string Name = IvarDecl->getNameAsString();
+
Result += "\t";
- Result += TypeString; Result += " "; Result += IvarDecl->getNameAsString();
+ convertToUnqualifiedObjCType(Type);
+ convertBlockPointerToFunctionPointer(Type);
+ Type.getAsStringInternal(Name, Context->getPrintingPolicy());
+ Result += Name;
if (IvarDecl->isBitField()) {
Result += " : "; Result += utostr(IvarDecl->getBitWidthValue(*Context));
}
More information about the cfe-commits
mailing list