[libc-commits] [libc] [libc]: Remove unused includes from strfrom*.cpp (PR #86657)
via libc-commits
libc-commits at lists.llvm.org
Tue Mar 26 05:08:54 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Vinayak Dev (vinayakdsci)
<details>
<summary>Changes</summary>
Removes unused header includes from `strfrom*()` implementation files.
---
Full diff: https://github.com/llvm/llvm-project/pull/86657.diff
3 Files Affected:
- (modified) libc/src/stdlib/strfromd.cpp (-3)
- (modified) libc/src/stdlib/strfromf.cpp (-3)
- (modified) libc/src/stdlib/strfroml.cpp (-3)
``````````diff
diff --git a/libc/src/stdlib/strfromd.cpp b/libc/src/stdlib/strfromd.cpp
index 1d02a7ad112442..329f6fdcaff731 100644
--- a/libc/src/stdlib/strfromd.cpp
+++ b/libc/src/stdlib/strfromd.cpp
@@ -9,9 +9,6 @@
#include "src/stdlib/strfromd.h"
#include "src/stdlib/str_from_util.h"
-#include <stdarg.h>
-#include <stddef.h>
-
namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, strfromd,
diff --git a/libc/src/stdlib/strfromf.cpp b/libc/src/stdlib/strfromf.cpp
index 40eff87eb454c5..80e1d74797c80b 100644
--- a/libc/src/stdlib/strfromf.cpp
+++ b/libc/src/stdlib/strfromf.cpp
@@ -9,9 +9,6 @@
#include "src/stdlib/strfromf.h"
#include "src/stdlib/str_from_util.h"
-#include <stdarg.h>
-#include <stddef.h>
-
namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, strfromf,
diff --git a/libc/src/stdlib/strfroml.cpp b/libc/src/stdlib/strfroml.cpp
index 6b8781e7c04e11..f0bc9354c7ad76 100644
--- a/libc/src/stdlib/strfroml.cpp
+++ b/libc/src/stdlib/strfroml.cpp
@@ -9,9 +9,6 @@
#include "src/stdlib/strfroml.h"
#include "src/stdlib/str_from_util.h"
-#include <stdarg.h>
-#include <stddef.h>
-
namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, strfroml,
``````````
</details>
https://github.com/llvm/llvm-project/pull/86657
More information about the libc-commits
mailing list