Skip to content

Commit 9eb24cc

Browse files
set defaults for all fields in SymbolGraphOptions
1 parent 6896033 commit 9eb24cc

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

include/swift/SymbolGraphGen/SymbolGraphOptions.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,33 +21,33 @@ namespace symbolgraphgen {
2121

2222
struct SymbolGraphOptions {
2323
/// The directory to output the symbol graph JSON files.
24-
StringRef OutputDir;
24+
StringRef OutputDir = StringRef{};
2525

2626
/// The target of the module.
27-
llvm::Triple Target;
27+
llvm::Triple Target = llvm::Triple{};
2828
/// Pretty-print the JSON with newlines and indentation.
29-
bool PrettyPrint;
29+
bool PrettyPrint = false;
3030

3131
/// The minimum access level that symbols must have in order to be
3232
/// included in the graph.
33-
AccessLevel MinimumAccessLevel;
33+
AccessLevel MinimumAccessLevel = AccessLevel::Public;
3434

3535
/// Emit members gotten through class inheritance or protocol default
3636
/// implementations with compound, "SYNTHESIZED" USRs.
37-
bool EmitSynthesizedMembers;
37+
bool EmitSynthesizedMembers = false;
3838

3939
/// Whether to print informational messages when rendering
4040
/// a symbol graph.
41-
bool PrintMessages;
41+
bool PrintMessages = false;
4242

4343
/// Whether to skip docs for symbols with compound, "SYNTHESIZED" USRs.
44-
bool SkipInheritedDocs;
44+
bool SkipInheritedDocs = false;
4545

4646
/// Whether to emit symbols with SPI information.
47-
bool IncludeSPISymbols;
47+
bool IncludeSPISymbols = false;
4848

4949
/// Whether to include documentation for clang nodes or not.
50-
bool IncludeClangDocs;
50+
bool IncludeClangDocs = false;
5151
};
5252

5353
} // end namespace symbolgraphgen

0 commit comments

Comments
 (0)