Skip to content

Commit 38d47fd

Browse files
committed
skip more internal identifiers
1 parent bc3fd80 commit 38d47fd

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

Diff for: src/builder/namespace.rs

+11-4
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)