Commit cb62c24
src: reduce to simple
> A lot of the `std::string` usage here could be reduced
to simple `const char*`s if it's reasonable to expect the values to be
known at compile-time.
So this commit uses `const char*` to replace most of `std::string` in
`OptionsParser`.
PR-URL: #26297
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>const char* in OptionsParser1 parent 50e42c9 commit cb62c24Copy full SHA for cb62c24
File tree
Expand file treeCollapse file tree
2 files changed
+45
-49
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
2 files changed
+45
-49
lines changedOpen diff view settings
Collapse file
+24-24Lines changed: 24 additions & 24 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
28 | 28 | |
29 | 29 | |
30 | 30 | |
31 | | - |
32 | | - |
| 31 | + |
| 32 | + |
33 | 33 | |
34 | 34 | |
35 | 35 | |
| ||
40 | 40 | |
41 | 41 | |
42 | 42 | |
43 | | - |
44 | | - |
| 43 | + |
| 44 | + |
45 | 45 | |
46 | 46 | |
47 | 47 | |
| ||
53 | 53 | |
54 | 54 | |
55 | 55 | |
56 | | - |
57 | | - |
| 56 | + |
| 57 | + |
58 | 58 | |
59 | 59 | |
60 | 60 | |
| ||
66 | 66 | |
67 | 67 | |
68 | 68 | |
69 | | - |
70 | | - |
| 69 | + |
| 70 | + |
71 | 71 | |
72 | 72 | |
73 | 73 | |
| ||
80 | 80 | |
81 | 81 | |
82 | 82 | |
83 | | - |
84 | | - |
| 83 | + |
| 84 | + |
85 | 85 | |
86 | 86 | |
87 | 87 | |
| ||
93 | 93 | |
94 | 94 | |
95 | 95 | |
96 | | - |
97 | | - |
| 96 | + |
| 97 | + |
98 | 98 | |
99 | 99 | |
100 | 100 | |
| ||
106 | 106 | |
107 | 107 | |
108 | 108 | |
109 | | - |
110 | | - |
| 109 | + |
| 110 | + |
111 | 111 | |
112 | 112 | |
113 | 113 | |
114 | 114 | |
115 | 115 | |
116 | 116 | |
117 | | - |
118 | | - |
| 117 | + |
| 118 | + |
119 | 119 | |
120 | 120 | |
121 | 121 | |
122 | 122 | |
123 | 123 | |
124 | 124 | |
125 | 125 | |
126 | | - |
127 | | - |
| 126 | + |
| 127 | + |
128 | 128 | |
129 | 129 | |
130 | 130 | |
131 | 131 | |
132 | | - |
| 132 | + |
133 | 133 | |
134 | 134 | |
135 | 135 | |
136 | 136 | |
137 | 137 | |
138 | 138 | |
139 | | - |
| 139 | + |
140 | 140 | |
141 | 141 | |
142 | 142 | |
143 | 143 | |
144 | 144 | |
145 | | - |
146 | | - |
| 145 | + |
| 146 | + |
147 | 147 | |
148 | 148 | |
149 | 149 | |
| ||
153 | 153 | |
154 | 154 | |
155 | 155 | |
156 | | - |
157 | | - |
| 156 | + |
| 157 | + |
158 | 158 | |
159 | 159 | |
160 | 160 | |
|
Collapse file
+21-25Lines changed: 21 additions & 25 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
239 | 239 | |
240 | 240 | |
241 | 241 | |
242 | | - |
243 | | - |
244 | | - |
245 | | - |
246 | 242 | |
247 | 243 | |
248 | 244 | |
249 | | - |
250 | | - |
| 245 | + |
| 246 | + |
251 | 247 | |
252 | 248 | |
253 | | - |
254 | | - |
| 249 | + |
| 250 | + |
255 | 251 | |
256 | 252 | |
257 | | - |
258 | | - |
| 253 | + |
| 254 | + |
259 | 255 | |
260 | 256 | |
261 | | - |
262 | | - |
| 257 | + |
| 258 | + |
263 | 259 | |
264 | 260 | |
265 | | - |
266 | | - |
| 261 | + |
| 262 | + |
267 | 263 | |
268 | 264 | |
269 | | - |
270 | | - |
| 265 | + |
| 266 | + |
271 | 267 | |
272 | 268 | |
273 | | - |
274 | | - |
| 269 | + |
| 270 | + |
275 | 271 | |
276 | 272 | |
277 | | - |
278 | | - |
| 273 | + |
| 274 | + |
279 | 275 | |
280 | 276 | |
281 | 277 | |
| ||
286 | 282 | |
287 | 283 | |
288 | 284 | |
289 | | - |
290 | | - |
291 | | - |
| 285 | + |
| 286 | + |
| 287 | + |
292 | 288 | |
293 | 289 | |
294 | 290 | |
295 | 291 | |
296 | | - |
297 | | - |
| 292 | + |
| 293 | + |
298 | 294 | |
299 | 295 | |
300 | 296 | |
|
0 commit comments