Skip to content

Commit 1f93c2f

Browse files
committed
Skip documentation extraction for synthetic subprograms.
1 parent 3c6b060 commit 1f93c2f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/gnatdoc-comments-helpers.adb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,13 @@ package body GNATdoc.Comments.Helpers is
528528
Comment : Structured_Comment;
529529

530530
begin
531+
-- Synthetic declarations doesn't have nor code snippets nor
532+
-- documentation.
533+
534+
if Name.P_Basic_Decl.Kind = Ada_Synthetic_Subp_Decl then
535+
return;
536+
end if;
537+
531538
-- LAL 20250922: `P_Most_Visible_Part` returns `null` for named
532539
-- numbers.
533540

0 commit comments

Comments
 (0)