forked from OSchip/llvm-project
- Remove _interface_ prefix for the synthesized tag names.
- Also removed a tab from the generated struct (minor). llvm-svn: 43616
This commit is contained in:
parent
53155f379e
commit
63006473d5
|
@ -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 += " {";
|
||||
|
|
Loading…
Reference in New Issue