[Lldb-commits] [lldb] 4ecd9bd - [lldb][Posix] Remove unused includes in file system (#121913)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 7 03:23:22 PST 2025
Author: David Spickett
Date: 2025-01-07T11:23:17Z
New Revision: 4ecd9bd03b8b0e2ceba5c6c8525227be8d8ab215
URL: https://github.com/llvm/llvm-project/commit/4ecd9bd03b8b0e2ceba5c6c8525227be8d8ab215
DIFF: https://github.com/llvm/llvm-project/commit/4ecd9bd03b8b0e2ceba5c6c8525227be8d8ab215.diff
LOG: [lldb][Posix] Remove unused includes in file system (#121913)
You could remove unistd.h and it will still build, but only because
something else included it. So I've left it in in the spirit of "include
what you use".
Tested on Linux and FreeBSD.
Added:
Modified:
lldb/source/Host/posix/FileSystemPosix.cpp
Removed:
################################################################################
diff --git a/lldb/source/Host/posix/FileSystemPosix.cpp b/lldb/source/Host/posix/FileSystemPosix.cpp
index 945e2affc83715..d2e5b52917ac26 100644
--- a/lldb/source/Host/posix/FileSystemPosix.cpp
+++ b/lldb/source/Host/posix/FileSystemPosix.cpp
@@ -9,12 +9,7 @@
#include "lldb/Host/FileSystem.h"
// C includes
-#include <dirent.h>
#include <fcntl.h>
-#include <sys/mount.h>
-#include <sys/param.h>
-#include <sys/stat.h>
-#include <sys/types.h>
#include <unistd.h>
#if defined(__NetBSD__)
#include <sys/statvfs.h>
More information about the lldb-commits
mailing list