File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -125,8 +125,10 @@ headerForAmbiguousStdSymbol(const NamedDecl *ND) {
125
125
if (FD->getNumParams () == 1 )
126
126
// move(T&& t)
127
127
return tooling::stdlib::Header::named (" <utility>" );
128
- if (FD->getNumParams () == 3 )
128
+ if (FD->getNumParams () == 3 || FD-> getNumParams () == 4 )
129
129
// move(InputIt first, InputIt last, OutputIt dest);
130
+ // move(ExecutionPolicy&& policy, ForwardIt1 first,
131
+ // ForwardIt1 last, ForwardIt2 d_first);
130
132
return tooling::stdlib::Header::named (" <algorithm>" );
131
133
} else if (FName == " remove" ) {
132
134
if (FD->getNumParams () == 1 )
Original file line number Diff line number Diff line change @@ -546,6 +546,16 @@ TEST_F(HeadersForSymbolTest, AmbiguousStdSymbols) {
546
546
" move" ,
547
547
" <algorithm>" ,
548
548
},
549
+ {
550
+ R"cpp(
551
+ namespace std {
552
+ template<class ExecutionPolicy, class ForwardIt1, class ForwardIt2>
553
+ ForwardIt2 move(ExecutionPolicy&& policy,
554
+ ForwardIt1 first, ForwardIt1 last, ForwardIt2 d_first);
555
+ })cpp" ,
556
+ " move" ,
557
+ " <algorithm>" ,
558
+ },
549
559
{
550
560
R"cpp(
551
561
namespace std {
You can’t perform that action at this time.
0 commit comments