From 59ac7b91daed86af1ff03aceb7d9e9b8118e06ba Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 3 Oct 2019 17:58:22 -0400 Subject: add -fdump-analysis to dump type information to json This commit adds -fdump-analysis which creates a `$NAME-analysis.json` file with all of the finished semantic analysis that the stage1 compiler produced. It contains types, packages, declarations, and files. This is an initial implementation; some data will be missing. However it's easy to improve the implementation, which is in `src/dump_analysis.cpp`. The next step for #21 will be to create Zig code which parses this json file and creates user-facing HTML documentation. This feature has other uses, however; for example, it could be used for IDE integration features until the self-hosted compiler is available. --- src/stack_report.hpp | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 src/stack_report.hpp (limited to 'src/stack_report.hpp') diff --git a/src/stack_report.hpp b/src/stack_report.hpp deleted file mode 100644 index 8a644466f9..0000000000 --- a/src/stack_report.hpp +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (c) 2019 Andrew Kelley - * - * This file is part of zig, which is MIT licensed. - * See http://opensource.org/licenses/MIT - */ - -#ifndef ZIG_STACK_REPORT_HPP -#define ZIG_STACK_REPORT_HPP - -#include "all_types.hpp" -#include - -void zig_print_stack_report(CodeGen *g, FILE *f); - -#endif -- cgit v1.2.3