Author: Kazu Hirata Date: 2025-05-26T14:57:05-07:00 New Revision: 36d57677bbbcc4f32e7aa16b73ca22fcae13a3aa
URL: https://github.com/llvm/llvm-project/commit/36d57677bbbcc4f32e7aa16b73ca22fcae13a3aa DIFF: https://github.com/llvm/llvm-project/commit/36d57677bbbcc4f32e7aa16b73ca22fcae13a3aa.diff LOG: [Lex] Remove unused includes (NFC) (#141523) These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-specific build failures. Added: Modified: clang/lib/Lex/HeaderMap.cpp clang/lib/Lex/ModuleMap.cpp clang/lib/Lex/ModuleMapFile.cpp Removed: ################################################################################ diff --git a/clang/lib/Lex/HeaderMap.cpp b/clang/lib/Lex/HeaderMap.cpp index 588b32ee9ca8e..a7b670f00ac6e 100644 --- a/clang/lib/Lex/HeaderMap.cpp +++ b/clang/lib/Lex/HeaderMap.cpp @@ -18,7 +18,6 @@ #include "llvm/Support/Debug.h" #include "llvm/Support/MathExtras.h" #include "llvm/Support/MemoryBuffer.h" -#include "llvm/Support/SystemZ/zOSSupport.h" #include <cstring> #include <memory> #include <optional> diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp index e899e0cbc6f35..c088e4eecb3fb 100644 --- a/clang/lib/Lex/ModuleMap.cpp +++ b/clang/lib/Lex/ModuleMap.cpp @@ -37,9 +37,7 @@ #include "llvm/Support/Path.h" #include "llvm/Support/VirtualFileSystem.h" #include "llvm/Support/raw_ostream.h" -#include <algorithm> #include <cassert> -#include <cstdint> #include <cstring> #include <optional> #include <string> diff --git a/clang/lib/Lex/ModuleMapFile.cpp b/clang/lib/Lex/ModuleMapFile.cpp index f457de85243cc..183e919d14c22 100644 --- a/clang/lib/Lex/ModuleMapFile.cpp +++ b/clang/lib/Lex/ModuleMapFile.cpp @@ -20,8 +20,6 @@ #include "clang/Lex/Lexer.h" #include "clang/Lex/ModuleMap.h" #include "llvm/ADT/STLExtras.h" -#include "llvm/Support/Error.h" -#include "llvm/Support/Format.h" #include <optional> using namespace clang; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits