[clang] 092966a - [Driver] Make regex stricter (#121243)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 27 19:32:09 PST 2024
Author: Vitaly Buka
Date: 2024-12-27T19:32:06-08:00
New Revision: 092966a44d1793e6bd53c191efeb5a5425fecde3
URL: https://github.com/llvm/llvm-project/commit/092966a44d1793e6bd53c191efeb5a5425fecde3
DIFF: https://github.com/llvm/llvm-project/commit/092966a44d1793e6bd53c191efeb5a5425fecde3.diff
LOG: [Driver] Make regex stricter (#121243)
Follow up to #121221.
Added:
Modified:
clang/test/Driver/sanitizer-ld.c
Removed:
################################################################################
diff --git a/clang/test/Driver/sanitizer-ld.c b/clang/test/Driver/sanitizer-ld.c
index 4e4cfbae27e113..17766cef86d2a8 100644
--- a/clang/test/Driver/sanitizer-ld.c
+++ b/clang/test/Driver/sanitizer-ld.c
@@ -1,9 +1,13 @@
// Test sanitizers ld flags.
-// Match all libclang_rt, excluding platform-inconsistent libs, like
-// libclang_rt.builtins, libclang_rt.osx etc.
-
-// DEFINE: %{filecheck} = FileCheck %s --implicit-check-not="libclang_rt.{{([^.]+san|scudo|cfi|safestack|stats|fuzzer|undefined)}}"
+// Match all sanitizer related libclang_rt, we are not interested in
+// libclang_rt.builtins, libclang_rt.osx, libclang_rt.ios, libclang_rt.watchos
+// etc.
+//
+// If we need to add sanitizer with name starting with excluded laters, e.g.
+// `bsan`, we can extend expression like this: `([^iow]|b[^u])`.
+//
+// DEFINE: %{filecheck} = FileCheck %s --implicit-check-not="libclang_rt.{{([^biow])}}"
// RUN: %clang -### %s 2>&1 \
// RUN: --target=i386-unknown-linux -fuse-ld=ld -fsanitize=address \
More information about the cfe-commits
mailing list