[clang-tools-extra] 2f18b02 - [clang-tools-extra] Remove unused forward declarations (NFC)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 30 16:05:18 PST 2022
Author: Kazu Hirata
Date: 2022-01-30T16:05:00-08:00
New Revision: 2f18b02de7e365d9be1877810843a459bbe0d73d
URL: https://github.com/llvm/llvm-project/commit/2f18b02de7e365d9be1877810843a459bbe0d73d
DIFF: https://github.com/llvm/llvm-project/commit/2f18b02de7e365d9be1877810843a459bbe0d73d.diff
LOG: [clang-tools-extra] Remove unused forward declarations (NFC)
Added:
Modified:
clang-tools-extra/clang-apply-replacements/include/clang-apply-replacements/Tooling/ApplyReplacements.h
clang-tools-extra/clang-tidy/ClangTidyCheck.h
clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.h
clang-tools-extra/clangd/ClangdLSPServer.h
clang-tools-extra/clangd/GlobalCompilationDatabase.h
clang-tools-extra/clangd/ParsedAST.h
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-apply-replacements/include/clang-apply-replacements/Tooling/ApplyReplacements.h b/clang-tools-extra/clang-apply-replacements/include/clang-apply-replacements/Tooling/ApplyReplacements.h
index 2f8ddbed99079..e37768277c5a4 100644
--- a/clang-tools-extra/clang-apply-replacements/include/clang-apply-replacements/Tooling/ApplyReplacements.h
+++ b/clang-tools-extra/clang-apply-replacements/include/clang-apply-replacements/Tooling/ApplyReplacements.h
@@ -27,7 +27,6 @@
namespace clang {
class DiagnosticsEngine;
-class Rewriter;
namespace replace {
diff --git a/clang-tools-extra/clang-tidy/ClangTidyCheck.h b/clang-tools-extra/clang-tidy/ClangTidyCheck.h
index 102e82ce85a88..9b41e5836de73 100644
--- a/clang-tools-extra/clang-tidy/ClangTidyCheck.h
+++ b/clang-tools-extra/clang-tidy/ClangTidyCheck.h
@@ -20,7 +20,6 @@
namespace clang {
-class CompilerInstance;
class SourceManager;
namespace tidy {
diff --git a/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h b/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
index 3b5f82033d253..1b1866476c38b 100644
--- a/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
+++ b/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
@@ -20,14 +20,7 @@
namespace clang {
class ASTContext;
-class CompilerInstance;
class SourceManager;
-namespace ast_matchers {
-class MatchFinder;
-} // namespace ast_matchers
-namespace tooling {
-class CompilationDatabase;
-} // namespace tooling
namespace tidy {
class CachedGlobList;
diff --git a/clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.h b/clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.h
index a1621961986e7..01809c016ad01 100644
--- a/clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.h
+++ b/clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.h
@@ -12,9 +12,6 @@
#include "../utils/RenamerClangTidyCheck.h"
#include "llvm/ADT/Optional.h"
namespace clang {
-
-class MacroInfo;
-
namespace tidy {
namespace readability {
diff --git a/clang-tools-extra/clangd/ClangdLSPServer.h b/clang-tools-extra/clangd/ClangdLSPServer.h
index 02c2a5c721e1d..27c65bade2164 100644
--- a/clang-tools-extra/clangd/ClangdLSPServer.h
+++ b/clang-tools-extra/clangd/ClangdLSPServer.h
@@ -31,8 +31,6 @@
namespace clang {
namespace clangd {
-class SymbolIndex;
-
/// This class exposes ClangdServer's capabilities via Language Server Protocol.
///
/// MessageHandler binds the implemented LSP methods (e.g. onInitialize) to
diff --git a/clang-tools-extra/clangd/GlobalCompilationDatabase.h b/clang-tools-extra/clangd/GlobalCompilationDatabase.h
index b6e2fa3bccdfa..4a41c6963a597 100644
--- a/clang-tools-extra/clangd/GlobalCompilationDatabase.h
+++ b/clang-tools-extra/clangd/GlobalCompilationDatabase.h
@@ -24,8 +24,6 @@
namespace clang {
namespace clangd {
-class Logger;
-
struct ProjectInfo {
// The directory in which the compilation database was discovered.
// Empty if directory-based compilation database discovery was not used.
diff --git a/clang-tools-extra/clangd/ParsedAST.h b/clang-tools-extra/clangd/ParsedAST.h
index 8a89e5f3bebfd..43f3fdda7227e 100644
--- a/clang-tools-extra/clangd/ParsedAST.h
+++ b/clang-tools-extra/clangd/ParsedAST.h
@@ -43,7 +43,6 @@
namespace clang {
namespace clangd {
class HeuristicResolver;
-class SymbolIndex;
/// Stores and provides access to parsed AST.
class ParsedAST {
More information about the cfe-commits
mailing list