Skip to content

Commit ba2b92b

Browse files
call it PrintMessages instead
1 parent 0c5955b commit ba2b92b

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

include/swift/SymbolGraphGen/SymbolGraphOptions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ struct SymbolGraphOptions {
3636
/// implementations with compound, "SYNTHESIZED" USRs.
3737
bool EmitSynthesizedMembers;
3838

39-
/// Whether to silence the "Found N symbols" messages when rendering
39+
/// Whether to print informational messages when rendering
4040
/// a symbol graph.
41-
bool QuietMessages;
41+
bool PrintMessages;
4242
};
4343

4444
} // end namespace symbolgraphgen

lib/Serialization/Serialization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5633,7 +5633,7 @@ void swift::serialize(ModuleOrSourceFile DC,
56335633
/* PrettyPrint */false,
56345634
AccessLevel::Public,
56355635
/*EmitSynthesizedMembers*/true,
5636-
/*QuietMessages*/true,
5636+
/*PrintMessages*/false,
56375637
};
56385638
symbolgraphgen::emitSymbolGraphForModule(M, SGOpts);
56395639
}

lib/SymbolGraphGen/SymbolGraphGen.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ symbolgraphgen::emitSymbolGraphForModule(ModuleDecl *M,
7070
SmallVector<Decl *, 64> ModuleDecls;
7171
M->getDisplayDecls(ModuleDecls);
7272

73-
if (!Options.QuietMessages)
73+
if (Options.PrintMessages)
7474
llvm::errs() << ModuleDecls.size()
7575
<< " top-level declarations in this module.\n";
7676

7777
for (auto *Decl : ModuleDecls) {
7878
Walker.walk(Decl);
7979
}
8080

81-
if (!Options.QuietMessages)
81+
if (Options.PrintMessages)
8282
llvm::errs()
8383
<< "Found " << Walker.MainGraph.Nodes.size() << " symbols and "
8484
<< Walker.MainGraph.Edges.size() << " relationships.\n";

tools/SourceKit/lib/SwiftLang/SwiftSourceDocInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ fillSymbolInfo(CursorSymbolInfo &Symbol, const DeclInfo &DInfo,
869869
/*PrettyPrint=*/false,
870870
AccessLevel::Private,
871871
/*EmitSynthesizedMembers*/ false,
872-
/*QuietMessages*/ true,
872+
/*PrintMessages*/ false,
873873
};
874874

875875
symbolgraphgen::printSymbolGraphForDecl(DInfo.VD, DInfo.BaseType,

tools/driver/swift_symbolgraph_extract_main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ int swift_symbolgraph_extract_main(ArrayRef<const char *> Args,
166166
ParsedArgs.hasArg(OPT_pretty_print),
167167
AccessLevel::Public,
168168
!ParsedArgs.hasArg(OPT_skip_synthesized_members),
169-
!ParsedArgs.hasArg(OPT_v),
169+
ParsedArgs.hasArg(OPT_v),
170170
};
171171

172172
if (auto *A = ParsedArgs.getLastArg(OPT_minimum_access_level)) {
@@ -220,7 +220,7 @@ int swift_symbolgraph_extract_main(ArrayRef<const char *> Args,
220220

221221
const auto &MainFile = M->getMainFile(FileUnitKind::SerializedAST);
222222

223-
if (!Options.QuietMessages)
223+
if (Options.PrintMessages)
224224
llvm::errs() << "Emitting symbol graph for module file: " << MainFile.getModuleDefiningPath() << '\n';
225225

226226
int Success = symbolgraphgen::emitSymbolGraphForModule(M, Options);
@@ -240,7 +240,7 @@ int swift_symbolgraph_extract_main(ArrayRef<const char *> Args,
240240
if (CIM) {
241241
const auto &CIMainFile = CIM->getMainFile(FileUnitKind::SerializedAST);
242242

243-
if (!Options.QuietMessages)
243+
if (Options.PrintMessages)
244244
llvm::errs() << "Emitting symbol graph for cross-import overlay module file: "
245245
<< CIMainFile.getModuleDefiningPath() << '\n';
246246

0 commit comments

Comments
 (0)