Skip to content

Commit 71373f4

Browse files
kazutakahiratasivan-shani
authored andcommitted
[Lex] Remove unused includes (NFC) (llvm#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.
1 parent cd8ef2b commit 71373f4

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

clang/lib/Lex/HeaderMap.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include "llvm/Support/Debug.h"
1919
#include "llvm/Support/MathExtras.h"
2020
#include "llvm/Support/MemoryBuffer.h"
21-
#include "llvm/Support/SystemZ/zOSSupport.h"
2221
#include <cstring>
2322
#include <memory>
2423
#include <optional>

clang/lib/Lex/ModuleMap.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@
3737
#include "llvm/Support/Path.h"
3838
#include "llvm/Support/VirtualFileSystem.h"
3939
#include "llvm/Support/raw_ostream.h"
40-
#include <algorithm>
4140
#include <cassert>
42-
#include <cstdint>
4341
#include <cstring>
4442
#include <optional>
4543
#include <string>

clang/lib/Lex/ModuleMapFile.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#include "clang/Lex/Lexer.h"
2121
#include "clang/Lex/ModuleMap.h"
2222
#include "llvm/ADT/STLExtras.h"
23-
#include "llvm/Support/Error.h"
24-
#include "llvm/Support/Format.h"
2523
#include <optional>
2624

2725
using namespace clang;

0 commit comments

Comments
 (0)