Skip to content

Commit

Permalink
Plus valid ident check.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Oct 18, 2022
1 parent e69e0df commit 9763aa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindgen/ir/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ impl Type {
}
};

name = name.filter(|n| !n.is_empty());
name = name.filter(|n| !n.is_empty() && clang::is_valid_identifier(n));

let is_const = ty.is_const() ||
(ty.kind() == CXType_ConstantArray &&
Expand Down

0 comments on commit 9763aa5

Please sign in to comment.