File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -954,22 +954,21 @@ visitBlockCommandComment(
954
954
case CommandTraits::KCI_returns:
955
955
case CommandTraits::KCI_result:
956
956
{
957
- doc::Returns returns;
958
- auto scope = enterScope (returns);
959
- // Scope scope(returns, block_);
960
- visitChildren (C->getParagraph ());
961
-
962
957
auto itr = std::ranges::find_if (
963
958
jd_.getBlocks (),
964
959
[&](const std::unique_ptr<doc::Block> & b)
965
960
{
966
- return b->kind ! = doc::Kind::returns;
961
+ return b->kind = = doc::Kind::returns;
967
962
});
968
963
if (itr != jd_.getBlocks ().end ())
969
964
{
970
965
report::warn (" {}: Duplicate @returns statement" , C->getBeginLoc ().printToString (sm_));
971
966
}
972
967
968
+ doc::Returns returns;
969
+ auto scope = enterScope (returns);
970
+ // Scope scope(returns, block_);
971
+ visitChildren (C->getParagraph ());
973
972
jd_.emplace_back (std::move (returns));
974
973
return ;
975
974
}
You can’t perform that action at this time.
0 commit comments