Skip to content

Commit 9763aa5

Browse files
committed
Plus valid ident check.
1 parent e69e0df commit 9763aa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindgen/ir/ty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,7 @@ impl Type {
11931193
}
11941194
};
11951195

1196-
name = name.filter(|n| !n.is_empty());
1196+
name = name.filter(|n| !n.is_empty() && clang::is_valid_identifier(n));
11971197

11981198
let is_const = ty.is_const() ||
11991199
(ty.kind() == CXType_ConstantArray &&

0 commit comments

Comments
 (0)