From bcb53910875e787773e7b60f31ded3afba3aa843 Mon Sep 17 00:00:00 2001 From: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com> Date: Tue, 20 Aug 2024 20:55:46 -0400 Subject: Exclude synthesized code from code auto documentation system (#4889) * Exclude synthesized code from code auto documentation system Fixes #4888 Changes to exclude synthesized code from code-auto-documentation system * syntax change for cleanup --- source/slang/slang-doc-markdown-writer.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/slang/slang-doc-markdown-writer.cpp') diff --git a/source/slang/slang-doc-markdown-writer.cpp b/source/slang/slang-doc-markdown-writer.cpp index f29574180..c9dd6d9c8 100644 --- a/source/slang/slang-doc-markdown-writer.cpp +++ b/source/slang/slang-doc-markdown-writer.cpp @@ -1070,6 +1070,8 @@ void DocMarkdownWriter::writeAggType(const ASTMarkup::Entry& entry, AggTypeDeclB List uniqueMethods; for (const auto& [_, decl] : memberDict) { + if (!shouldDocumentDecl(decl)) + continue; CallableDecl* callableDecl = as(decl); if (callableDecl && isVisible(callableDecl)) { -- cgit v1.2.3