File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1717// SummaryKind should be a string literal.
1818
1919RTSAN_CHECK (CallStackContains, " call-stack-contains" )
20- RTSAN_CHECK(FunctionNameIs , " function-name-is " )
20+ RTSAN_CHECK(FunctionNameMatches , " function-name-matches " )
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ void BlockFunc() [[clang::blocking]] {
3636void *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
Original file line number Diff line number Diff line change 11call-stack-contains:MallocViolation
22call-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*
You can’t perform that action at this time.
0 commit comments