diff options
| author | Loris Cro <kappaloris@gmail.com> | 2022-01-28 22:50:03 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-07-19 19:10:10 -0700 |
| commit | 652e13e7c06db318d88a93db24a8fb2c2f8d249b (patch) | |
| tree | 4b86e50ac4283675702706c445b349a1ce355454 /src/Compilation.zig | |
| parent | 0efc6a35bead74b5faffbc87b446b5087f1bb99b (diff) | |
| download | zig-652e13e7c06db318d88a93db24a8fb2c2f8d249b.tar.gz zig-652e13e7c06db318d88a93db24a8fb2c2f8d249b.zip | |
autodoc: init work
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 659fa5e972..cadc665598 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -34,6 +34,7 @@ const ThreadPool = @import("ThreadPool.zig"); const WaitGroup = @import("WaitGroup.zig"); const libtsan = @import("libtsan.zig"); const Zir = @import("Zir.zig"); +const Autodoc = @import("Autodoc.zig"); const Color = @import("main.zig").Color; /// General-purpose allocator. Used for both temporary and long-term storage. @@ -2866,6 +2867,13 @@ pub fn performAllTheWork( } } + if (comp.emit_docs) |doc_location| { + if (comp.bin_file.options.module) |module| { + var autodoc = Autodoc.init(module, doc_location); + try autodoc.generateZirData(); + } + } + if (!use_stage1) { const outdated_and_deleted_decls_frame = tracy.namedFrame("outdated_and_deleted_decls"); defer outdated_and_deleted_decls_frame.end(); |
