Skip to content

Commit 20deaba

Browse files
committed
[nfc][astgen] Ignore deprecation warning around bridged dump methods.
1 parent f7909a8 commit 20deaba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/AST/CASTBridging.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,9 @@ void TypeAliasDecl_setUnderlyingTypeRepr(void *decl, void *underlyingType) {
505505
((TypeAliasDecl *)decl)->setUnderlyingTypeRepr((TypeRepr *)underlyingType);
506506
}
507507

508+
#pragma clang diagnostic push
509+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
510+
508511
void TopLevelCodeDecl_dump(void *decl) {
509512
((TopLevelCodeDecl *)decl)->dump(llvm::errs());
510513
}
@@ -513,3 +516,5 @@ void Expr_dump(void *expr) { ((Expr *)expr)->dump(llvm::errs()); }
513516
void Decl_dump(void *expr) { ((Decl *)expr)->dump(llvm::errs()); }
514517
void Stmt_dump(void *expr) { ((Stmt *)expr)->dump(llvm::errs()); }
515518
void Type_dump(void *expr) { ((TypeRepr *)expr)->dump(); }
519+
520+
#pragma clang diagnostic pop

0 commit comments

Comments
 (0)