diff options
| author | Loris Cro <kappaloris@gmail.com> | 2023-09-20 19:17:00 +0200 |
|---|---|---|
| committer | Loris Cro <kappaloris@gmail.com> | 2023-09-20 19:17:00 +0200 |
| commit | c481510c99ab29903350a834810bdcac32dbd9ea (patch) | |
| tree | 93d30e203b38f33ea297f9ad46170226c2a40ebb /src/codegen/llvm.zig | |
| parent | a63a1c5cb9fd31a57e8371e6cba5f316bd3f2a65 (diff) | |
| download | zig-c481510c99ab29903350a834810bdcac32dbd9ea.tar.gz zig-c481510c99ab29903350a834810bdcac32dbd9ea.zip | |
autodoc: show more doc comments for namespaces and types
previously, in the container view (the type of view that you see when
you look at `std` for example), when listing types and namespaces, we
would only show doc comments places on the direct child decl, which in
the case of the `std` namespace, for example, it's just a bunch of
re-exports.
now, if we don't find a direct doc comment, we chase indirection and
display doc comments placed directly on the definition, if any.
this is the precise priority order:
```
/// 1
pub const Foo = _Foo;
/// 2
const _Foo = struct {
//! 3
};
```
The numbers show the priority order for autodoc.
Diffstat (limited to 'src/codegen/llvm.zig')
0 files changed, 0 insertions, 0 deletions
