aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-07-22 11:06:12 +0100
committerGitHub <noreply@github.com>2025-07-22 11:06:12 +0100
commit513e6daacebb40425cea7fb3a181f3a6430183ab (patch)
treebef6adffb181d1596e6bdf5f2fefe6192b9cc158 /src/parser.cpp
parente2b75d2addc9ae520030bc3daec701b80f7ef7c5 (diff)
parent51d427f424b7ffbf44bb9aa1e9086e2984b419f0 (diff)
Merge pull request #5081 from Lperlind/vet-explicit-allocators
Add -vet-explicit-allocators
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 7a2693e29..1ccc3feaa 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -33,6 +33,10 @@ gb_internal bool ast_file_vet_deprecated(AstFile *f) {
return (ast_file_vet_flags(f) & VetFlag_Deprecated) != 0;
}
+gb_internal bool ast_file_vet_explicit_allocators(AstFile *f) {
+ return (ast_file_vet_flags(f) & VetFlag_ExplicitAllocators) != 0;
+}
+
gb_internal bool file_allow_newline(AstFile *f) {
bool is_strict = build_context.strict_style || ast_file_vet_style(f);
return !is_strict;
@@ -6356,6 +6360,7 @@ gb_internal u64 parse_vet_tag(Token token_for_pos, String s) {
error_line("\textra\n");
error_line("\tcast\n");
error_line("\ttabs\n");
+ error_line("\texplicit-allocators\n");
return build_context.vet_flags;
}
}