Author: jkorous-apple Date: 2024-01-30T15:51:00-08:00 New Revision: 86cd2fbdfe67d70a7fe061ed5d3a644f50f070f5
URL: https://github.com/llvm/llvm-project/commit/86cd2fbdfe67d70a7fe061ed5d3a644f50f070f5 DIFF: https://github.com/llvm/llvm-project/commit/86cd2fbdfe67d70a7fe061ed5d3a644f50f070f5.diff LOG: [-Wunsafe-buffer-usage][NFC] Add testcase for non-unsafe pointer (#80076) This adds a missing CHECK-NOT directive for an existing test case. Added: Modified: clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-pointer-access.cpp Removed: ################################################################################ diff --git a/clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-pointer-access.cpp b/clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-pointer-access.cpp index 20d9d33195a6b..ca19702c7ec30 100644 --- a/clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-pointer-access.cpp +++ b/clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-pointer-access.cpp @@ -85,6 +85,7 @@ void unsafe_method_invocation_single_param() { void safe_method_invocation_single_param() { int* p = new int[10]; + // CHECK-NOT: fix-it:"{{.*}}":{[[@LINE-1]]:{{.*}}-[[@LINE-1]]:{{.*}}} foo(p); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits