https://github.com/qinkunbao created https://github.com/llvm/llvm-project/pull/142659
None >From c3e6f0f64be652259065c4c57b9dec7cc30502d0 Mon Sep 17 00:00:00 2001 From: Qinkun Bao <qin...@google.com> Date: Tue, 3 Jun 2025 19:29:54 +0000 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?= =?UTF-8?q?l=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Created using spr 1.3.6 --- clang/docs/ReleaseNotes.rst | 4 +++- clang/docs/SanitizerSpecialCaseList.rst | 18 ++++++++++++++++-- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index eccee1aeef846..49ce9ef938fe9 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -1045,7 +1045,9 @@ Sanitizers ---------- - ``-fsanitize=vptr`` is no longer a part of ``-fsanitize=undefined``. -- Sanitizer ignorelists now support the syntax ``src:*=sanitize``. +- Sanitizer ignorelists now support the syntax ``src:*=sanitize``, + ``type:*=sanitize``, ``fun:*=sanitize``, ``global:*=sanitize``, + and ``mainfile:*=sanitize``. Python Binding Changes ---------------------- diff --git a/clang/docs/SanitizerSpecialCaseList.rst b/clang/docs/SanitizerSpecialCaseList.rst index 6f924cfa97a97..4d0715f8a68ce 100644 --- a/clang/docs/SanitizerSpecialCaseList.rst +++ b/clang/docs/SanitizerSpecialCaseList.rst @@ -79,7 +79,8 @@ instrumentation for arithmetic operations containing values of type ``int``. The ``=sanitize`` category is also supported. Any ``=sanitize`` category entries enable sanitizer instrumentation, even if it was ignored by entries -before. +before. Entries can be ``src``, ``type``, ``global``, ``fun``, and +``mainfile``. With this, one may disable instrumentation for some or all types and specifically allow instrumentation for one or many types -- including types @@ -103,7 +104,7 @@ supported sanitizers. } If multiple entries match the source, then the latest entry takes the -precedence. +precedence. Here are a few examples. .. code-block:: bash @@ -119,6 +120,19 @@ precedence. src:*/mylib/test.cc src:*/mylib/*=sanitize + $ cat ignorelist3.txt + # Type T will be instrumented. + type:* + type:T=sanitize + type:T + + $ cat ignorelist4.txt + # Function `bad_bar`` will be instrumented. + # Function `good_bar` will not be instrumented. + fun:* + fun:bar* + fun:bad_bar=sanitize + Format ====== _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits