aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2024-06-20 11:45:52 +0100
committerGitHub <noreply@github.com>2024-06-20 11:45:52 +0100
commit23351ca8bec5862be531e886a3a3513c31bb2c30 (patch)
tree2f8e0c98c4b9c4ace3e8531abdf74ba95f54ef01 /src/checker.cpp
parent56383e45a7441fc789cd44c5e0dbaf9b2079a0f1 (diff)
parentf2be35f1f0cd23f0264f174bcc6ce608a9076af7 (diff)
Merge pull request #3137 from laytan/show-defineable
Add flags to show/export defineable values and warn if a -define is unused in the project
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 49726c090..4945b3810 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -1302,6 +1302,7 @@ gb_internal void init_checker_info(CheckerInfo *i) {
array_init(&i->init_procedures, a, 0, 0);
array_init(&i->fini_procedures, a, 0, 0);
array_init(&i->required_foreign_imports_through_force, a, 0, 0);
+ array_init(&i->defineables, a);
map_init(&i->objc_msgSend_types);
string_map_init(&i->load_file_cache);
@@ -1331,6 +1332,7 @@ gb_internal void destroy_checker_info(CheckerInfo *i) {
string_map_destroy(&i->packages);
array_free(&i->variable_init_order);
array_free(&i->required_foreign_imports_through_force);
+ array_free(&i->defineables);
mpsc_destroy(&i->entity_queue);
mpsc_destroy(&i->definition_queue);