Skip to content

Commit 2158036

Browse files
[ASTMatchers] Remove unused includes (NFC) (llvm#142407)
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 5411ebd commit 2158036

File tree

5 files changed

+0
-12
lines changed

5 files changed

+0
-12
lines changed

clang/lib/ASTMatchers/ASTMatchersInternal.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,10 @@
2626
#include "llvm/ADT/SmallString.h"
2727
#include "llvm/ADT/SmallVector.h"
2828
#include "llvm/ADT/StringRef.h"
29-
#include "llvm/Support/Casting.h"
3029
#include "llvm/Support/ErrorHandling.h"
31-
#include "llvm/Support/ManagedStatic.h"
3230
#include "llvm/Support/Regex.h"
3331
#include "llvm/Support/WithColor.h"
3432
#include "llvm/Support/raw_ostream.h"
35-
#include <algorithm>
3633
#include <cassert>
3734
#include <cstddef>
3835
#include <optional>

clang/lib/ASTMatchers/Dynamic/Parser.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "llvm/ADT/StringRef.h"
2020
#include "llvm/Support/ErrorHandling.h"
2121
#include "llvm/Support/ManagedStatic.h"
22-
#include <algorithm>
2322
#include <cassert>
2423
#include <cerrno>
2524
#include <cstddef>

clang/lib/ASTMatchers/Dynamic/Registry.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@
1717
#include "clang/ASTMatchers/ASTMatchers.h"
1818
#include "clang/ASTMatchers/Dynamic/Diagnostics.h"
1919
#include "clang/ASTMatchers/Dynamic/VariantValue.h"
20-
#include "llvm/ADT/STLExtras.h"
2120
#include "llvm/ADT/StringMap.h"
2221
#include "llvm/ADT/StringRef.h"
2322
#include "llvm/Support/ManagedStatic.h"
2423
#include "llvm/Support/raw_ostream.h"
2524
#include <cassert>
26-
#include <iterator>
2725
#include <memory>
2826
#include <optional>
2927
#include <set>

clang/lib/ASTMatchers/Dynamic/VariantValue.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
#include "clang/ASTMatchers/Dynamic/VariantValue.h"
1515
#include "clang/Basic/LLVM.h"
16-
#include "llvm/ADT/STLExtras.h"
1716
#include <optional>
1817

1918
namespace clang {

clang/lib/ASTMatchers/GtestMatchers.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
//===----------------------------------------------------------------------===//
1717

1818
#include "clang/ASTMatchers/GtestMatchers.h"
19-
#include "clang/AST/ASTConsumer.h"
20-
#include "clang/AST/ASTContext.h"
21-
#include "clang/AST/RecursiveASTVisitor.h"
22-
#include "clang/ASTMatchers/ASTMatchFinder.h"
23-
#include "llvm/ADT/DenseMap.h"
2419
#include "llvm/ADT/StringRef.h"
2520

2621
namespace clang {

0 commit comments

Comments
 (0)