Skip to content

Commit 2210eff

Browse files
committed
[SourceKit] Avoid synthesizing extensions if group names are not given. rdar://26198267
1 parent aec6ea7 commit 2210eff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/SourceKit/lib/SwiftLang/SwiftEditorInterfaceGen.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ static bool getModuleInterfaceInfo(ASTContext &Ctx,
323323
printSubmoduleInterface(Mod, SplitModuleName,
324324
Group.hasValue() ? llvm::makeArrayRef(Group.getValue()) : ArrayRef<StringRef>(),
325325
TraversalOptions,
326-
Printer, Options, SynthesizedExtensions);
326+
Printer, Options,
327+
Group.hasValue() && SynthesizedExtensions);
327328

328329
Info.Text = OS.str();
329330
return false;

0 commit comments

Comments
 (0)