refactor: stop populating SymbolGraphOptions at creation

This commit is contained in:
Victoria Mitchell
2023-02-17 11:19:38 -07:00
parent 4ec3e5291f
commit 7ed30c92af
2 changed files with 17 additions and 25 deletions

View File

@@ -1013,18 +1013,12 @@ fillSymbolInfo(CursorSymbolInfo &Symbol, const DeclInfo &DInfo,
if (AddSymbolGraph) {
SmallVector<symbolgraphgen::PathComponent, 4> PathComponents;
SmallVector<symbolgraphgen::FragmentInfo, 8> FragmentInfos;
symbolgraphgen::SymbolGraphOptions Options{
"",
Invoc.getLangOptions().Target,
/*PrettyPrint=*/false,
AccessLevel::Private,
/*EmitSynthesizedMembers=*/false,
/*PrintMessages=*/false,
/*SkipInheritedDocs=*/false,
/*IncludeSPISymbols=*/true,
/*IncludeClangDocs=*/true,
/*EmitExtensionBlockSymbols=*/false,
};
symbolgraphgen::SymbolGraphOptions Options;
Options.Target = Invoc.getLangOptions().Target;
Options.MinimumAccessLevel = AccessLevel::Private;
Options.IncludeSPISymbols = true;
Options.IncludeClangDocs = true;
symbolgraphgen::printSymbolGraphForDecl(DInfo.VD, DInfo.BaseType,
DInfo.InSynthesizedExtension,