mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 14:36:46 +00:00
[clang][Modules] Remove unnecessary includes of Module.h
(#93417)
This commit is contained in:
parent
10e7671d9a
commit
aaa4ff88d6
@ -25,7 +25,6 @@
|
||||
#include "clang/AST/DeclTemplate.h"
|
||||
#include "clang/Basic/FileEntry.h"
|
||||
#include "clang/Basic/LLVM.h"
|
||||
#include "clang/Basic/Module.h"
|
||||
#include "clang/Basic/SourceLocation.h"
|
||||
#include "clang/Basic/SourceManager.h"
|
||||
#include "clang/Basic/TokenKinds.h"
|
||||
@ -42,7 +41,11 @@
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
namespace clang::clangd {
|
||||
namespace clang {
|
||||
|
||||
class Module;
|
||||
|
||||
namespace clangd {
|
||||
namespace {
|
||||
struct Inclusion {
|
||||
Inclusion(const SourceManager &SM, SourceLocation HashLoc,
|
||||
@ -170,4 +173,5 @@ TEST(ReplayPreambleTest, IncludesAndSkippedFiles) {
|
||||
}
|
||||
}
|
||||
} // namespace
|
||||
} // namespace clang::clangd
|
||||
} // namespace clangd
|
||||
} // namespace clang
|
||||
|
@ -9,7 +9,6 @@
|
||||
#ifndef LLVM_CLANG_APINOTES_APINOTESMANAGER_H
|
||||
#define LLVM_CLANG_APINOTES_APINOTESMANAGER_H
|
||||
|
||||
#include "clang/Basic/Module.h"
|
||||
#include "clang/Basic/SourceLocation.h"
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
@ -24,6 +23,7 @@ namespace clang {
|
||||
class DirectoryEntry;
|
||||
class FileEntry;
|
||||
class LangOptions;
|
||||
class Module;
|
||||
class SourceManager;
|
||||
|
||||
namespace api_notes {
|
||||
|
@ -17,7 +17,6 @@
|
||||
#ifndef LLVM_CLANG_EXTRACTAPI_SERIALIZATION_SYMBOLGRAPHSERIALIZER_H
|
||||
#define LLVM_CLANG_EXTRACTAPI_SERIALIZATION_SYMBOLGRAPHSERIALIZER_H
|
||||
|
||||
#include "clang/Basic/Module.h"
|
||||
#include "clang/ExtractAPI/API.h"
|
||||
#include "clang/ExtractAPI/APIIgnoresList.h"
|
||||
#include "clang/ExtractAPI/Serialization/APISetVisitor.h"
|
||||
|
@ -18,7 +18,6 @@
|
||||
#include "clang/AST/Decl.h"
|
||||
#include "clang/AST/Type.h"
|
||||
#include "clang/Basic/LLVM.h"
|
||||
#include "clang/Basic/Module.h"
|
||||
#include "clang/Basic/SourceLocation.h"
|
||||
#include "clang/Sema/Sema.h"
|
||||
#include "clang/Sema/SemaConsumer.h"
|
||||
|
@ -15,7 +15,6 @@
|
||||
#define LLVM_CLANG_SERIALIZATION_MODULEMANAGER_H
|
||||
|
||||
#include "clang/Basic/LLVM.h"
|
||||
#include "clang/Basic/Module.h"
|
||||
#include "clang/Basic/SourceLocation.h"
|
||||
#include "clang/Serialization/ModuleFile.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include "clang/Basic/Diagnostic.h"
|
||||
#include "clang/Basic/FileManager.h"
|
||||
#include "clang/Basic/LangOptions.h"
|
||||
#include "clang/Basic/Module.h"
|
||||
#include "clang/Basic/SourceManager.h"
|
||||
#include "clang/Basic/SourceMgrAdapter.h"
|
||||
#include "clang/Basic/Version.h"
|
||||
|
@ -17,7 +17,6 @@
|
||||
#include "clang/AST/DeclLookups.h"
|
||||
#include "clang/AST/JSONNodeDumper.h"
|
||||
#include "clang/Basic/Builtins.h"
|
||||
#include "clang/Basic/Module.h"
|
||||
#include "clang/Basic/SourceManager.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include "clang/AST/Mangle.h"
|
||||
#include "clang/Basic/ABI.h"
|
||||
#include "clang/Basic/LangOptions.h"
|
||||
#include "clang/Basic/Module.h"
|
||||
#include "clang/Basic/NoSanitizeList.h"
|
||||
#include "clang/Basic/ProfileList.h"
|
||||
#include "clang/Basic/TargetInfo.h"
|
||||
|
@ -14,7 +14,6 @@
|
||||
|
||||
#include "clang/ExtractAPI/API.h"
|
||||
#include "clang/AST/RawCommentList.h"
|
||||
#include "clang/Basic/Module.h"
|
||||
#include "clang/Index/USRGeneration.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
|
@ -9,8 +9,6 @@
|
||||
#include "clang-tidy/ClangTidyCheck.h"
|
||||
#include "clang-tidy/ClangTidyModuleRegistry.h"
|
||||
|
||||
#include "clang/Basic/Module.h"
|
||||
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
|
||||
#include "header_exportable_declarations.hpp"
|
||||
|
Loading…
x
Reference in New Issue
Block a user