summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-doc-markdown-writer.cpp
diff options
context:
space:
mode:
authorArielG-NV <159081215+ArielG-NV@users.noreply.github.com>2024-08-20 20:55:46 -0400
committerGitHub <noreply@github.com>2024-08-20 17:55:46 -0700
commitbcb53910875e787773e7b60f31ded3afba3aa843 (patch)
tree8129e44bd6e8a06cee1e9b6d073252d7d17353b2 /source/slang/slang-doc-markdown-writer.cpp
parent6b1b2432060944cb1d812d3afffac65e2b8b9d1d (diff)
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
Diffstat (limited to 'source/slang/slang-doc-markdown-writer.cpp')
-rw-r--r--source/slang/slang-doc-markdown-writer.cpp2
1 files changed, 2 insertions, 0 deletions
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<Decl*> uniqueMethods;
for (const auto& [_, decl] : memberDict)
{
+ if (!shouldDocumentDecl(decl))
+ continue;
CallableDecl* callableDecl = as<CallableDecl>(decl);
if (callableDecl && isVisible(callableDecl))
{