TypeAsString.c_str(), TypeAsString.size());
return;
}
- if (QT->isObjCObjectPointerType()) {
- QualType ptee = QT->getAs<ObjCObjectPointerType>()->getPointeeType();
- std::string TypeAsString = "(struct ";
- TypeAsString += ptee.getAsString();
- TypeAsString += "_IMPL *";
- TypeAsString += ")";
- ReplaceText(LocStart, endBuf-startBuf+1,
- TypeAsString.c_str(), TypeAsString.size());
- return;
+ if (LangOpts.Microsoft && QT->isObjCObjectPointerType()) {
+ if (isa<ObjCInterfaceType>(QT->getPointeeType())) {
+ QualType ptee = QT->getAs<ObjCObjectPointerType>()->getPointeeType();
+ std::string TypeAsString = "(struct ";
+ TypeAsString += ptee.getAsString();
+ TypeAsString += "_IMPL *";
+ TypeAsString += ")";
+ ReplaceText(LocStart, endBuf-startBuf+1,
+ TypeAsString.c_str(), TypeAsString.size());
+ return;
+ }
}
// advance the location to startArgList.
const char *argPtr = startBuf;
}
@end
+void objc_assign_strongCast(id);
+void __CFAssignWithWriteBarrier(void **location, void *value) {
+ objc_assign_strongCast((id)value);
+}
+
// CHECK-LP: ((struct G_IMPL *)arg)->ivar
+// CHECK-LP: objc_assign_strongCast((id)value)