[clang-doc][NFC] Remove unused headers (#168806)
Removes unused headers or replaces them with headers that directly provide the symbol instead. For example, `Serialize.h` included `AST.h`, but it was actually `Serialize.cpp` that needed concept expressions, so now it includes just `ExprConcepts.h`.
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "BitcodeReader.h"
|
||||
#include "llvm/ADT/IndexedMap.h"
|
||||
#include "llvm/Support/Error.h"
|
||||
#include "llvm/Support/TimeProfiler.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
|
||||
#include "BitcodeWriter.h"
|
||||
#include "Representation.h"
|
||||
#include "clang/AST/AST.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/Bitstream/BitstreamReader.h"
|
||||
#include "llvm/Support/Error.h"
|
||||
#include <optional>
|
||||
|
||||
@@ -16,12 +16,8 @@
|
||||
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_BITCODEWRITER_H
|
||||
|
||||
#include "Representation.h"
|
||||
#include "clang/AST/AST.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/Bitstream/BitstreamWriter.h"
|
||||
#include <initializer_list>
|
||||
#include <vector>
|
||||
|
||||
namespace clang {
|
||||
|
||||
@@ -15,13 +15,9 @@
|
||||
#include "ClangDoc.h"
|
||||
#include "Mapper.h"
|
||||
#include "Representation.h"
|
||||
#include "clang/AST/AST.h"
|
||||
#include "clang/AST/ASTConsumer.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/AST/RecursiveASTVisitor.h"
|
||||
#include "clang/Frontend/ASTConsumers.h"
|
||||
#include "clang/Frontend/CompilerInstance.h"
|
||||
#include "clang/Frontend/FrontendActions.h"
|
||||
|
||||
namespace clang {
|
||||
namespace doc {
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_CLANGDOC_H
|
||||
|
||||
#include "Representation.h"
|
||||
#include "clang/Tooling/Execution.h"
|
||||
#include "clang/Tooling/StandaloneExecution.h"
|
||||
#include "clang/Tooling/Tooling.h"
|
||||
|
||||
namespace clang {
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
|
||||
#include "Representation.h"
|
||||
#include "clang/AST/RecursiveASTVisitor.h"
|
||||
#include "clang/Tooling/Execution.h"
|
||||
|
||||
using namespace clang::comments;
|
||||
using namespace clang::tooling;
|
||||
|
||||
@@ -16,10 +16,8 @@
|
||||
|
||||
#include "clang/AST/Type.h"
|
||||
#include "clang/Basic/Specifiers.h"
|
||||
#include "clang/Tooling/StandaloneExecution.h"
|
||||
#include "llvm/ADT/APSInt.h"
|
||||
#include "clang/Tooling/Execution.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
#include <array>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
@@ -11,7 +11,9 @@
|
||||
|
||||
#include "clang/AST/Attr.h"
|
||||
#include "clang/AST/Comment.h"
|
||||
#include "clang/AST/CommentVisitor.h"
|
||||
#include "clang/AST/DeclFriend.h"
|
||||
#include "clang/AST/ExprConcepts.h"
|
||||
#include "clang/AST/Mangle.h"
|
||||
#include "clang/Index/USRGeneration.h"
|
||||
#include "clang/Lex/Lexer.h"
|
||||
|
||||
@@ -16,10 +16,7 @@
|
||||
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_SERIALIZE_H
|
||||
|
||||
#include "Representation.h"
|
||||
#include "clang/AST/AST.h"
|
||||
#include "clang/AST/CommentVisitor.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
using namespace clang::comments;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_FILE_H
|
||||
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_FILE_H
|
||||
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
#include "llvm/Support/Error.h"
|
||||
|
||||
namespace clang {
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
#include "Generators.h"
|
||||
#include "Representation.h"
|
||||
#include "support/Utils.h"
|
||||
#include "clang/ASTMatchers/ASTMatchersInternal.h"
|
||||
#include "clang/Tooling/AllTUsExecution.h"
|
||||
#include "clang/Tooling/CommonOptionsParser.h"
|
||||
#include "clang/Tooling/Execution.h"
|
||||
@@ -41,7 +40,6 @@
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
|
||||
using namespace clang::ast_matchers;
|
||||
using namespace clang::tooling;
|
||||
using namespace clang;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user