llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Danial Klimkin (dklimkin)

<details>
<summary>Changes</summary>

Avoid libc dep in warn-unsafe-buffer-usage-warning-data-invocation.

To keep the test hermetic. This is in line with other existing declarations in 
the file that avoid includes.

---
Full diff: https://github.com/llvm/llvm-project/pull/79183.diff


1 Files Affected:

- (modified) 
clang/test/SemaCXX/warn-unsafe-buffer-usage-warning-data-invocation.cpp (+2-1) 


``````````diff
diff --git 
a/clang/test/SemaCXX/warn-unsafe-buffer-usage-warning-data-invocation.cpp 
b/clang/test/SemaCXX/warn-unsafe-buffer-usage-warning-data-invocation.cpp
index 574afcd0eb6dce3..5c9df12513e521a 100644
--- a/clang/test/SemaCXX/warn-unsafe-buffer-usage-warning-data-invocation.cpp
+++ b/clang/test/SemaCXX/warn-unsafe-buffer-usage-warning-data-invocation.cpp
@@ -7,7 +7,6 @@
 // RUN: %clang_cc1 -std=c++20 -fblocks -include %s %s 2>&1 | FileCheck 
--allow-empty %s
 // CHECK-NOT: [-Wunsafe-buffer-usage]
 
-#include <stdint.h>
 #ifndef INCLUDED
 #define INCLUDED
 #pragma clang system_header
@@ -15,6 +14,8 @@
 // no spanification warnings for system headers
 #else
 
+typedef __INTPTR_TYPE__ intptr_t;
+
 namespace std {
   class type_info;
   class bad_cast;

``````````

</details>


https://github.com/llvm/llvm-project/pull/79183
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to