[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125335)

2025-02-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/125335 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125335)

2025-02-01 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: > Feel free to batch some of these changes together in a single PR! Thanks! It's becoming harder to find occurrences where I can migrate `PU.dyn_cast` to `dyn_cast(PU)` (not to be confused with `dyn_cast_if_present(PU)`) because I have to convince myself that `PU` is ne

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125335)

2025-02-01 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. Feel free to batch some of these changes together in a single PR! https://github.com/llvm/llvm-project/pull/125335 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cg

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125335)

2025-02-01 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/125335 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125335)

2025-01-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast Litera

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125335)

2025-01-31 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/125335 Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast Literal migration