@@ -42,12 +42,24 @@ public DriverOptions()
42
42
43
43
/// <summary>
44
44
/// Set to true to simulate generating without actually writing
45
- /// any output to disk. This can be useful to activate while
46
- /// debugging the parser generator so generator bugs do not get
47
- /// in the way while iterating.
45
+ /// any output to disk.
48
46
/// </summary>
49
47
public bool DryRun ;
50
48
49
+ /// <summary>
50
+ /// Whether the generated code should be automatically compiled.
51
+ /// </summary>
52
+ public bool CompileCode ;
53
+
54
+ // Parser options
55
+
56
+ /// <summary>
57
+ /// If this option is off (the default), each header is parsed separately
58
+ /// which is much slower but safer because of a clean state of the preprocessor
59
+ /// for each header.
60
+ /// </summary>
61
+ public bool UnityBuild { get ; set ; }
62
+
51
63
public Module SystemModule { get ; }
52
64
public List < Module > Modules { get ; }
53
65
@@ -61,7 +73,6 @@ public Module MainModule
61
73
}
62
74
}
63
75
64
- // Parser options
65
76
public List < string > Headers => MainModule . Headers ;
66
77
67
78
// Library options
@@ -104,31 +115,20 @@ public string LibraryName
104
115
105
116
/// <summary>
106
117
/// If set to true the CLI generator will use ObjectOverridesPass to create
107
- /// Equals, GetHashCode and (if the insertion operator << is overloaded) ToString
108
- /// methods.
118
+ /// Equals, GetHashCode and (if the insertion operator << is overloaded)
119
+ /// ToString methods.
109
120
/// </summary>
110
121
public bool GenerateObjectOverrides ;
111
122
112
123
//List of include directories that are used but not generated
113
124
public List < string > NoGenIncludeDirs ;
114
125
115
- /// <summary>
116
- /// Whether the generated C# code should be automatically compiled.
117
- /// </summary>
118
- public bool CompileCode ;
119
-
120
126
/// <summary>
121
127
/// Enable this option to enable generation of finalizers.
122
128
/// Works in both CLI and C# backends.
123
129
/// </summary>
124
130
public bool GenerateFinalizers ;
125
131
126
- /// <summary>
127
- /// If this option is off (the default), each header is parsed separately which is much slower
128
- /// but safer because of a clean state of the preprocessor for each header.
129
- /// </summary>
130
- public bool UnityBuild { get ; set ; }
131
-
132
132
public string IncludePrefix ;
133
133
public Func < TranslationUnit , string > GenerateName ;
134
134
public string CommentPrefix ;
0 commit comments