Skip to content

Commit 1ae1c43

Browse files
authored
Merge pull request #62298 from zoecarver/fix-warning-astgen
[nfc][astgen] Ignore deprecation warning around bridged dump methods.
2 parents e71eb33 + 20deaba commit 1ae1c43

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
@@ -509,6 +509,9 @@ void TypeAliasDecl_setUnderlyingTypeRepr(void *decl, void *underlyingType) {
509509
((TypeAliasDecl *)decl)->setUnderlyingTypeRepr((TypeRepr *)underlyingType);
510510
}
511511

512+
#pragma clang diagnostic push
513+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
514+
512515
void TopLevelCodeDecl_dump(void *decl) {
513516
((TopLevelCodeDecl *)decl)->dump(llvm::errs());
514517
}
@@ -517,3 +520,5 @@ void Expr_dump(void *expr) { ((Expr *)expr)->dump(llvm::errs()); }
517520
void Decl_dump(void *expr) { ((Decl *)expr)->dump(llvm::errs()); }
518521
void Stmt_dump(void *expr) { ((Stmt *)expr)->dump(llvm::errs()); }
519522
void Type_dump(void *expr) { ((TypeRepr *)expr)->dump(); }
523+
524+
#pragma clang diagnostic pop

0 commit comments

Comments
 (0)