[clang] [llvm] [MTE] Add an attribute to opt-in memory tagging of global variables while using fsanitize=memtag-globals (#166380) (PR #168535)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 4 13:25:11 PST 2025


================
@@ -3655,6 +3655,16 @@ full list of supported sanitizer flags.
   }];
 }
 
+def ForceMemtagDocs : Documentation {
+  let Category = DocCatVariable;
+  let Content = [{
+Use the ``force_memtag`` attribute on a global variable declaration that also
+has the attribute section and the memory tag sanitizer is active to force the
----------------
fmayer wrote:

nit "and the" -> ". If the"?

https://github.com/llvm/llvm-project/pull/168535


More information about the llvm-commits mailing list