[clang] 65a1841 - [DirectoryWatcher] Include limits.h instead of MathExtras.h (NFC)

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 10 12:13:00 PST 2023


Author: Kazu Hirata
Date: 2023-12-10T12:12:54-08:00
New Revision: 65a18412ab26f92df133ca1ef3ff7ff7dbf3c5f8

URL: https://github.com/llvm/llvm-project/commit/65a18412ab26f92df133ca1ef3ff7ff7dbf3c5f8
DIFF: https://github.com/llvm/llvm-project/commit/65a18412ab26f92df133ca1ef3ff7ff7dbf3c5f8.diff

LOG: [DirectoryWatcher] Include limits.h instead of MathExtras.h (NFC)

Added: 
    

Modified: 
    clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp b/clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp
index 9b3d2571f29f6..beca9586988b5 100644
--- a/clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp
+++ b/clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp
@@ -14,7 +14,6 @@
 #include "llvm/Support/AlignOf.h"
 #include "llvm/Support/Errno.h"
 #include "llvm/Support/Error.h"
-#include "llvm/Support/MathExtras.h"
 #include "llvm/Support/Path.h"
 #include <atomic>
 #include <condition_variable>
@@ -25,6 +24,7 @@
 #include <vector>
 
 #include <fcntl.h>
+#include <limits.h>
 #include <optional>
 #include <sys/epoll.h>
 #include <sys/inotify.h>


        


More information about the cfe-commits mailing list