Skip to content

Commit 78d2439

Browse files
committed
VC20-013 Include comments between parameter and return...
... into the documentation of the last parameter.
1 parent ea793a1 commit 78d2439

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

source/gnatdoc-comments-builders-subprograms.adb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
------------------------------------------------------------------------------
22
-- GNAT Documentation Generation Tool --
33
-- --
4-
-- Copyright (C) 2022, AdaCore --
4+
-- Copyright (C) 2022-2023, AdaCore --
55
-- --
66
-- This is free software; you can redistribute it and/or modify it under --
77
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -113,6 +113,11 @@ package body GNATdoc.Comments.Builders.Subprograms is
113113
Token := Previous (Token);
114114
end loop;
115115

116+
Self.Restart_Component_Group (Returns_Section.Exact_Start_Line);
117+
-- Restart components group to include all comments after last
118+
-- parameter till line with return keyword into the documentation
119+
-- of the parameter.
120+
116121
if Options.Style = Leading then
117122
-- In leading style, set attitional range to lookup
118123
-- comments.

0 commit comments

Comments
 (0)