aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-05-01 12:16:10 +0100
committerGitHub <noreply@github.com>2025-05-01 12:16:10 +0100
commit777c33a9a1b570a15b45adc3a7f0013946ffe6a5 (patch)
treed3f69891bfafcbf78a3ff287e32504611d880788 /src/checker.cpp
parent2d8ae2d23c8cf7c9b76698e80aaf6ffd139254ac (diff)
parent5c73b4ef5829f0d722fdbb8ba8d84709563505a0 (diff)
Merge pull request #5102 from Lperlind/attribute-no-sanitize-address
Add attribute @(no_sanitize_address)
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 038c5aa1a..5e1517875 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -3711,6 +3711,12 @@ gb_internal DECL_ATTRIBUTE_PROC(proc_decl_attribute) {
}
ac->instrumentation_exit = true;
return true;
+ } else if (name == "no_sanitize_address") {
+ if (value != nullptr) {
+ error(value, "'%.*s' expects no parameter", LIT(name));
+ }
+ ac->no_sanitize_address = true;
+ return true;
}
return false;
}