We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bc88b6 commit fd90016Copy full SHA for fd90016
src/lib/AST/ASTVisitor.cpp
@@ -870,6 +870,30 @@ populate(
870
{
871
populate(I.Requires, TRC);
872
}
873
+ else
874
+ {
875
+ // Iterate I.Params to find trailing requires clauses
876
+ for (auto it = I.Params.begin(); it != I.Params.end(); )
877
878
+ if (it->Type &&
879
+ !it->Type->Constraints.empty())
880
881
+ for (ExprInfo const& constraint: it->Type->Constraints)
882
883
+ if (!I.Requires.Written.empty())
884
885
+ I.Requires.Written += " && ";
886
+ }
887
+ I.Requires.Written += constraint.Written;
888
889
+ it = I.Params.erase(it);
890
891
892
893
+ ++it;
894
895
896
897
898
populateAttributes(I, D);
899
0 commit comments