@@ -1842,16 +1842,16 @@ class OverloadExpr : public Expr {
1842
1842
// / template argument list, e.g. f<int>.
1843
1843
bool hasExplicitTemplateArgs () const { return HasExplicitTemplateArgs; }
1844
1844
1845
- ExplicitTemplateArgumentList &getExplicitTemplateArgs (); // defined far below
1845
+ ASTTemplateArgumentListInfo &getExplicitTemplateArgs (); // defined far below
1846
1846
1847
- const ExplicitTemplateArgumentList &getExplicitTemplateArgs () const {
1847
+ const ASTTemplateArgumentListInfo &getExplicitTemplateArgs () const {
1848
1848
return const_cast <OverloadExpr*>(this )->getExplicitTemplateArgs ();
1849
1849
}
1850
1850
1851
1851
// / \brief Retrieves the optional explicit template arguments.
1852
1852
// / This points to the same data as getExplicitTemplateArgs(), but
1853
1853
// / returns null if there are no explicit template arguments.
1854
- const ExplicitTemplateArgumentList *getOptionalExplicitTemplateArgs () {
1854
+ const ASTTemplateArgumentListInfo *getOptionalExplicitTemplateArgs () {
1855
1855
if (!hasExplicitTemplateArgs ()) return 0 ;
1856
1856
return &getExplicitTemplateArgs ();
1857
1857
}
@@ -1969,21 +1969,21 @@ class UnresolvedLookupExpr : public OverloadExpr {
1969
1969
// nodes, users are *forbidden* from calling these methods on objects
1970
1970
// without explicit template arguments.
1971
1971
1972
- ExplicitTemplateArgumentList &getExplicitTemplateArgs () {
1972
+ ASTTemplateArgumentListInfo &getExplicitTemplateArgs () {
1973
1973
assert (hasExplicitTemplateArgs ());
1974
- return *reinterpret_cast <ExplicitTemplateArgumentList *>(this + 1 );
1974
+ return *reinterpret_cast <ASTTemplateArgumentListInfo *>(this + 1 );
1975
1975
}
1976
1976
1977
1977
// / Gets a reference to the explicit template argument list.
1978
- const ExplicitTemplateArgumentList &getExplicitTemplateArgs () const {
1978
+ const ASTTemplateArgumentListInfo &getExplicitTemplateArgs () const {
1979
1979
assert (hasExplicitTemplateArgs ());
1980
- return *reinterpret_cast <const ExplicitTemplateArgumentList *>(this + 1 );
1980
+ return *reinterpret_cast <const ASTTemplateArgumentListInfo *>(this + 1 );
1981
1981
}
1982
1982
1983
1983
// / \brief Retrieves the optional explicit template arguments.
1984
1984
// / This points to the same data as getExplicitTemplateArgs(), but
1985
1985
// / returns null if there are no explicit template arguments.
1986
- const ExplicitTemplateArgumentList *getOptionalExplicitTemplateArgs () {
1986
+ const ASTTemplateArgumentListInfo *getOptionalExplicitTemplateArgs () {
1987
1987
if (!hasExplicitTemplateArgs ()) return 0 ;
1988
1988
return &getExplicitTemplateArgs ();
1989
1989
}
@@ -2094,21 +2094,21 @@ class DependentScopeDeclRefExpr : public Expr {
2094
2094
// nodes, users are *forbidden* from calling these methods on objects
2095
2095
// without explicit template arguments.
2096
2096
2097
- ExplicitTemplateArgumentList &getExplicitTemplateArgs () {
2097
+ ASTTemplateArgumentListInfo &getExplicitTemplateArgs () {
2098
2098
assert (hasExplicitTemplateArgs ());
2099
- return *reinterpret_cast <ExplicitTemplateArgumentList *>(this + 1 );
2099
+ return *reinterpret_cast <ASTTemplateArgumentListInfo *>(this + 1 );
2100
2100
}
2101
2101
2102
2102
// / Gets a reference to the explicit template argument list.
2103
- const ExplicitTemplateArgumentList &getExplicitTemplateArgs () const {
2103
+ const ASTTemplateArgumentListInfo &getExplicitTemplateArgs () const {
2104
2104
assert (hasExplicitTemplateArgs ());
2105
- return *reinterpret_cast <const ExplicitTemplateArgumentList *>(this + 1 );
2105
+ return *reinterpret_cast <const ASTTemplateArgumentListInfo *>(this + 1 );
2106
2106
}
2107
2107
2108
2108
// / \brief Retrieves the optional explicit template arguments.
2109
2109
// / This points to the same data as getExplicitTemplateArgs(), but
2110
2110
// / returns null if there are no explicit template arguments.
2111
- const ExplicitTemplateArgumentList *getOptionalExplicitTemplateArgs () {
2111
+ const ASTTemplateArgumentListInfo *getOptionalExplicitTemplateArgs () {
2112
2112
if (!hasExplicitTemplateArgs ()) return 0 ;
2113
2113
return &getExplicitTemplateArgs ();
2114
2114
}
@@ -2470,22 +2470,22 @@ class CXXDependentScopeMemberExpr : public Expr {
2470
2470
2471
2471
// / \brief Retrieve the explicit template argument list that followed the
2472
2472
// / member template name, if any.
2473
- ExplicitTemplateArgumentList &getExplicitTemplateArgs () {
2473
+ ASTTemplateArgumentListInfo &getExplicitTemplateArgs () {
2474
2474
assert (HasExplicitTemplateArgs);
2475
- return *reinterpret_cast <ExplicitTemplateArgumentList *>(this + 1 );
2475
+ return *reinterpret_cast <ASTTemplateArgumentListInfo *>(this + 1 );
2476
2476
}
2477
2477
2478
2478
// / \brief Retrieve the explicit template argument list that followed the
2479
2479
// / member template name, if any.
2480
- const ExplicitTemplateArgumentList &getExplicitTemplateArgs () const {
2480
+ const ASTTemplateArgumentListInfo &getExplicitTemplateArgs () const {
2481
2481
return const_cast <CXXDependentScopeMemberExpr *>(this )
2482
2482
->getExplicitTemplateArgs ();
2483
2483
}
2484
2484
2485
2485
// / \brief Retrieves the optional explicit template arguments.
2486
2486
// / This points to the same data as getExplicitTemplateArgs(), but
2487
2487
// / returns null if there are no explicit template arguments.
2488
- const ExplicitTemplateArgumentList *getOptionalExplicitTemplateArgs () {
2488
+ const ASTTemplateArgumentListInfo *getOptionalExplicitTemplateArgs () {
2489
2489
if (!hasExplicitTemplateArgs ()) return 0 ;
2490
2490
return &getExplicitTemplateArgs ();
2491
2491
}
@@ -2663,22 +2663,22 @@ class UnresolvedMemberExpr : public OverloadExpr {
2663
2663
2664
2664
// / \brief Retrieve the explicit template argument list that followed the
2665
2665
// / member template name.
2666
- ExplicitTemplateArgumentList &getExplicitTemplateArgs () {
2666
+ ASTTemplateArgumentListInfo &getExplicitTemplateArgs () {
2667
2667
assert (hasExplicitTemplateArgs ());
2668
- return *reinterpret_cast <ExplicitTemplateArgumentList *>(this + 1 );
2668
+ return *reinterpret_cast <ASTTemplateArgumentListInfo *>(this + 1 );
2669
2669
}
2670
2670
2671
2671
// / \brief Retrieve the explicit template argument list that followed the
2672
2672
// / member template name, if any.
2673
- const ExplicitTemplateArgumentList &getExplicitTemplateArgs () const {
2673
+ const ASTTemplateArgumentListInfo &getExplicitTemplateArgs () const {
2674
2674
assert (hasExplicitTemplateArgs ());
2675
- return *reinterpret_cast <const ExplicitTemplateArgumentList *>(this + 1 );
2675
+ return *reinterpret_cast <const ASTTemplateArgumentListInfo *>(this + 1 );
2676
2676
}
2677
2677
2678
2678
// / \brief Retrieves the optional explicit template arguments.
2679
2679
// / This points to the same data as getExplicitTemplateArgs(), but
2680
2680
// / returns null if there are no explicit template arguments.
2681
- const ExplicitTemplateArgumentList *getOptionalExplicitTemplateArgs () {
2681
+ const ASTTemplateArgumentListInfo *getOptionalExplicitTemplateArgs () {
2682
2682
if (!hasExplicitTemplateArgs ()) return 0 ;
2683
2683
return &getExplicitTemplateArgs ();
2684
2684
}
@@ -2856,7 +2856,7 @@ class PackExpansionExpr : public Expr {
2856
2856
}
2857
2857
};
2858
2858
2859
- inline ExplicitTemplateArgumentList &OverloadExpr::getExplicitTemplateArgs () {
2859
+ inline ASTTemplateArgumentListInfo &OverloadExpr::getExplicitTemplateArgs () {
2860
2860
if (isa<UnresolvedLookupExpr>(this ))
2861
2861
return cast<UnresolvedLookupExpr>(this )->getExplicitTemplateArgs ();
2862
2862
else
0 commit comments