Commit 5e4bf82
committed
[AST] Migrate away from PointerUnion::dyn_cast (NFC)
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
// isa<T>, cast<T> and the llvm::dyn_cast<T>
This patch migrates uses of PointerUnion::dyn_cast to
dyn_cast_if_present (see the definition of PointerUnion::dyn_cast).
Note that we already have dyn_cast_if_present<T*>(ExplicitInfo)
elsewhere in ClassTemplateSpecializationDecl and
VarTemplateSpecializationDecl, meaning that ExplicitInfo is not
guaranteed to be nonnull in those classes.1 parent 0bbfd96 commit 5e4bf82
File tree
2 files changed
+12
-7
lines changed- clang
- include/clang/AST
- lib/AST
2 files changed
+12
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2018 | 2018 | | |
2019 | 2019 | | |
2020 | 2020 | | |
2021 | | - | |
| 2021 | + | |
| 2022 | + | |
2022 | 2023 | | |
2023 | 2024 | | |
2024 | 2025 | | |
| |||
2032 | 2033 | | |
2033 | 2034 | | |
2034 | 2035 | | |
2035 | | - | |
| 2036 | + | |
| 2037 | + | |
2036 | 2038 | | |
2037 | 2039 | | |
2038 | 2040 | | |
| |||
2780 | 2782 | | |
2781 | 2783 | | |
2782 | 2784 | | |
2783 | | - | |
| 2785 | + | |
| 2786 | + | |
2784 | 2787 | | |
2785 | 2788 | | |
2786 | 2789 | | |
| |||
2803 | 2806 | | |
2804 | 2807 | | |
2805 | 2808 | | |
2806 | | - | |
| 2809 | + | |
| 2810 | + | |
2807 | 2811 | | |
2808 | 2812 | | |
2809 | 2813 | | |
| |||
2813 | 2817 | | |
2814 | 2818 | | |
2815 | 2819 | | |
2816 | | - | |
| 2820 | + | |
| 2821 | + | |
2817 | 2822 | | |
2818 | 2823 | | |
2819 | 2824 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1496 | 1496 | | |
1497 | 1497 | | |
1498 | 1498 | | |
1499 | | - | |
| 1499 | + | |
1500 | 1500 | | |
1501 | 1501 | | |
1502 | 1502 | | |
| |||
1509 | 1509 | | |
1510 | 1510 | | |
1511 | 1511 | | |
1512 | | - | |
| 1512 | + | |
1513 | 1513 | | |
1514 | 1514 | | |
1515 | 1515 | | |
| |||
0 commit comments