Skip to content

Commit 17d9ce9

Browse files
committed
function-name-matches
1 parent 2c98c51 commit 17d9ce9

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

compiler-rt/lib/rtsan/rtsan_checks.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
// SummaryKind should be a string literal.
1818

1919
RTSAN_CHECK(CallStackContains, "call-stack-contains")
20-
RTSAN_CHECK(FunctionNameIs, "function-name-is")
20+
RTSAN_CHECK(FunctionNameMatches, "function-name-matches")

compiler-rt/lib/rtsan/rtsan_suppressions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ bool __rtsan::IsFunctionSuppressed(const char *function_name) {
9797
if (suppression_ctx == nullptr)
9898
return false;
9999

100-
const char *flag_name = ConvertTypeToFlagName(ErrorType::FunctionNameIs);
100+
const char *flag_name = ConvertTypeToFlagName(ErrorType::FunctionNameMatches);
101101

102102
if (!suppression_ctx->HasSuppressionType(flag_name))
103103
return false;

compiler-rt/test/rtsan/stack_suppressions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ void BlockFunc() [[clang::blocking]] {
3636
void *process() [[clang::nonblocking]] {
3737
void *ptr = MallocViolation(); // Suppressed call-stack-contains
3838
VectorViolations(); // Suppressed call-stack-contains with regex
39-
BlockFunc(); // Suppressed function-name-is
40-
free(ptr); // Suppressed function-name-is
39+
BlockFunc(); // Suppressed function-name-matches
40+
free(ptr); // Suppressed function-name-matches
4141

4242
// This is the one that should abort the program
4343
// Everything else is suppressed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
call-stack-contains:MallocViolation
22
call-stack-contains:std::*vector
33

4-
function-name-is:free
5-
function-name-is:BlockFunc
4+
function-name-matches:free
5+
function-name-matches:Block*

0 commit comments

Comments
 (0)