aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-05-26 14:57:05 -0700
committerGitHub <noreply@github.com>2025-05-26 14:57:05 -0700
commit36d57677bbbcc4f32e7aa16b73ca22fcae13a3aa (patch)
treea76bf5918defd8363da5a1b0076989566c56f269 /clang/lib/Lex
parentf1d8e37f2cdb7266633743072d885643c82a6e1c (diff)
downloadllvm-36d57677bbbcc4f32e7aa16b73ca22fcae13a3aa.zip
llvm-36d57677bbbcc4f32e7aa16b73ca22fcae13a3aa.tar.gz
llvm-36d57677bbbcc4f32e7aa16b73ca22fcae13a3aa.tar.bz2
[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.
Diffstat (limited to 'clang/lib/Lex')
-rw-r--r--clang/lib/Lex/HeaderMap.cpp1
-rw-r--r--clang/lib/Lex/ModuleMap.cpp2
-rw-r--r--clang/lib/Lex/ModuleMapFile.cpp2
3 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Lex/HeaderMap.cpp b/clang/lib/Lex/HeaderMap.cpp
index 588b32e..a7b670f 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 e899e0c..c088e4e 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 f457de8..183e919 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;