aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-10-07 12:20:59 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-10-07 12:21:11 -0400
commit2ccb48ddc3f3b543bca0538da948013447afe429 (patch)
treed5230955957aea82230a0274af8d1f5c987b032f /src/analyze.cpp
parent85b8854c417a3b4bf2347c4f3709a047c4d311bd (diff)
downloadzig-2ccb48ddc3f3b543bca0538da948013447afe429.tar.gz
zig-2ccb48ddc3f3b543bca0538da948013447afe429.zip
generated docs: show doc comments on functions
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index c3206eac49..38739b56eb 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -7320,6 +7320,14 @@ bool tld_ptr_eql(const Tld *a, const Tld *b) {
return a == b;
}
+uint32_t node_ptr_hash(const AstNode *ptr) {
+ return hash_ptr((void*)ptr);
+}
+
+bool node_ptr_eql(const AstNode *a, const AstNode *b) {
+ return a == b;
+}
+
ConstExprValue *get_builtin_value(CodeGen *codegen, const char *name) {
Tld *tld = get_container_scope(codegen->compile_var_import)->decl_table.get(buf_create_from_str(name));
resolve_top_level_decl(codegen, tld, nullptr, false);