[libc-commits] [libc] 2d97ba2 - [libc]: Remove unused includes from strfrom*.cpp (#86657)
via libc-commits
libc-commits at lists.llvm.org
Tue Mar 26 13:16:39 PDT 2024
Author: Vinayak Dev
Date: 2024-03-26T13:16:35-07:00
New Revision: 2d97ba22f8ca0fbb8896fd0f54c0cd7c69f4d0cd
URL: https://github.com/llvm/llvm-project/commit/2d97ba22f8ca0fbb8896fd0f54c0cd7c69f4d0cd
DIFF: https://github.com/llvm/llvm-project/commit/2d97ba22f8ca0fbb8896fd0f54c0cd7c69f4d0cd.diff
LOG: [libc]: Remove unused includes from strfrom*.cpp (#86657)
Removes unused header includes from `strfrom*()` implementation files.
Added:
Modified:
libc/src/stdlib/strfromd.cpp
libc/src/stdlib/strfromf.cpp
libc/src/stdlib/strfroml.cpp
Removed:
################################################################################
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,
More information about the libc-commits
mailing list