File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -226,11 +226,21 @@ impl<'e> Namespace<'e> {
226
226
// skips specialization of std stuff or builtin stuff
227
227
if full_child_name. starts_with ( "std::" )
228
228
|| child_name. contains ( "deduction guide for" )
229
- || child_name. contains ( "unnamed enum " )
229
+ || child_name. contains ( "unnamed " )
230
230
{
231
231
continue ;
232
232
}
233
233
234
+ // if first char is weird
235
+ if child_name
236
+ . chars ( )
237
+ . next ( )
238
+ . is_some_and ( |c| "()<>[]" . contains ( c) )
239
+ {
240
+ warn ! ( "{full_child_name:?} is probably an internal identifier, skipping" ) ;
241
+ continue ;
242
+ }
243
+
234
244
if let Some ( ignore) = & config. ignore {
235
245
for pat in & ignore. patterns_full {
236
246
if pat. is_match ( & full_child_name) {
@@ -245,9 +255,6 @@ impl<'e> Namespace<'e> {
245
255
}
246
256
}
247
257
}
248
- if child_name. contains ( " " ) {
249
- debug ! ( "{full_child_name:?} is probably an internal identifier" ) ;
250
- }
251
258
252
259
if let Some ( kind) = CppItemKind :: from ( child) {
253
260
match kind {
You can’t perform that action at this time.
0 commit comments