diff options
| author | Yong He <yonghe@outlook.com> | 2024-04-01 15:56:02 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-01 15:56:02 -0700 |
| commit | 2c4f9810327d58023e9ec44f579cd78adf56317b (patch) | |
| tree | b5498a74bd7d01fd2e4c321a0d2e551d5f024d6d /source/slang/slang-doc-ast.cpp | |
| parent | 65ac9f3a9ddcb8bcfc099ffb29beaa9a92ba1f53 (diff) | |
Allow bit operators on enum types. (#3862)
* Allow bit operators on enum types.
* Fix.
Diffstat (limited to 'source/slang/slang-doc-ast.cpp')
| -rw-r--r-- | source/slang/slang-doc-ast.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/slang-doc-ast.cpp b/source/slang/slang-doc-ast.cpp index dfe3b321c..172f31b32 100644 --- a/source/slang/slang-doc-ast.cpp +++ b/source/slang/slang-doc-ast.cpp @@ -107,6 +107,10 @@ SlangResult ASTMarkupUtil::extract(ModuleDecl* moduleDecl, SourceManager* source SLANG_ASSERT(item.sourceLoc.isValid()); item.searchStyle = getSearchStyle(decl); + + // Don't generate documentation for synthesized members. + if (getText(decl->getName()).startsWith("$__syn")) + item.searchStyle = DocMarkupExtractor::SearchStyle::None; } DocMarkupExtractor extractor; |
