File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 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> {
226226 // skips specialization of std stuff or builtin stuff
227227 if full_child_name. starts_with ( "std::" )
228228 || child_name. contains ( "deduction guide for" )
229- || child_name. contains ( "unnamed enum " )
229+ || child_name. contains ( "unnamed " )
230230 {
231231 continue ;
232232 }
233233
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+
234244 if let Some ( ignore) = & config. ignore {
235245 for pat in & ignore. patterns_full {
236246 if pat. is_match ( & full_child_name) {
@@ -245,9 +255,6 @@ impl<'e> Namespace<'e> {
245255 }
246256 }
247257 }
248- if child_name. contains ( " " ) {
249- debug ! ( "{full_child_name:?} is probably an internal identifier" ) ;
250- }
251258
252259 if let Some ( kind) = CppItemKind :: from ( child) {
253260 match kind {
You can’t perform that action at this time.
0 commit comments