]> granicus.if.org Git - clang/commitdiff
- Remove _interface_ prefix for the synthesized tag names.
authorSteve Naroff <snaroff@apple.com>
Thu, 1 Nov 2007 17:12:31 +0000 (17:12 +0000)
committerSteve Naroff <snaroff@apple.com>
Thu, 1 Nov 2007 17:12:31 +0000 (17:12 +0000)
- Also removed a tab from the generated struct (minor).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43616 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/RewriteTest.cpp

index e2516c850e9ba6d45773a33919f055454dedcbfa..ca9b1153f02f9dd01b8134ebfbed21165346641e 100644 (file)
@@ -614,15 +614,14 @@ void RewriteTest::SynthesizeObjcInternalStruct(ObjcInterfaceDecl *CDecl,
   if (NumIvars <= 0 && (!RCDecl || !ObjcSynthesizedStructs.count(RCDecl)))
     return;
   
-  Result += "\nstruct _interface_";
-  Result += CDecl->getName();
-  if (RCDecl && ObjcSynthesizedStructs.count(RCDecl)) {
-    Result += " {\n";
-    Result += "\tstruct _interface_";
-    Result += RCDecl->getName();
-    Result += " _";
-    Result += RCDecl->getName();
-    Result += ";\n";
+   Result += "\nstruct ";
+   Result += CDecl->getName();
+   if (RCDecl && ObjcSynthesizedStructs.count(RCDecl)) {
+     Result += " {\n    struct ";
+     Result += RCDecl->getName();
+     Result += " _";
+     Result += RCDecl->getName();
+     Result += ";\n";
   }
   else
     Result += " {";