# autodoc: don't collect tests, usingnamespace and comptime blocks · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/2698cb346abe01a978edf98ba16ab6aad506b596)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 2698cb346abe01a978edf98ba16ab6aad506b596

Requested commit: 2698cb346abe01a978edf98ba16ab6aad506b596

Commit: 2698cb346abe01a978edf98ba16ab6aad506b596

Tree: 0fd918ce9734a5ad24f1a1f59e7beb0cfa40d308

Author: Loris Cro

Committer: Loris Cro

## Message

```
autodoc: don't collect tests, usingnamespace and comptime blocks

Previously we were collecting as autodoc decls everything that was a ZIR
decl in a rather naive way. Now we only collect decltests as part of the
data relative to the decl they refer to, and ignore everything else.

```

## Parents

- [54854e2ab87e667751f2eae86f41b9d41bcfda9d](https://git.cafe/gitcafe/zig/commit/54854e2ab87e667751f2eae86f41b9d41bcfda9d?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/2698cb346abe01a978edf98ba16ab6aad506b596?format=markdown)
