Skip to content

Commit

Permalink
Add a few macro names that are emitted with a newer clang
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Jan 15, 2023
1 parent 14f1440 commit b624f1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/header-translator/src/rust_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1784,7 +1784,7 @@ fn parse_unexposed_tokens(s: &str) -> String {
if let Some(TokenTree::Ident(ident)) = iter.peek() {
let ident = ident.to_string();
match &*ident {
"NS_RETURNS_INNER_POINTER" | "NS_REFINED_FOR_SWIFT" => {
"NS_RETURNS_INNER_POINTER" | "NS_REFINED_FOR_SWIFT" | "NS_SWIFT_UI_ACTOR" => {
iter.next();
}
"API_AVAILABLE"
Expand Down
3 changes: 3 additions & 0 deletions crates/header-translator/src/unexposed_attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ impl UnexposedAttr {
| "NS_SWIFT_ASYNC_NAME"
| "NS_SWIFT_NOTHROW"
| "NS_SWIFT_ASYNC_THROWS_ON_FALSE"
| "NS_SWIFT_UNAVAILABLE_FROM_ASYNC"
| "NS_SWIFT_DISABLE_ASYNC"
| "NS_SWIFT_UI_ACTOR"
| "NS_REFINED_FOR_SWIFT"
| "CF_REFINED_FOR_SWIFT"
| "NS_SWIFT_UNAVAILABLE"
Expand Down

0 comments on commit b624f1b

Please sign in to comment.