diff --git a/lldb/include/lldb/Core/ClangForward.h b/lldb/include/lldb/Core/ClangForward.h deleted file mode 100644 --- a/lldb/include/lldb/Core/ClangForward.h +++ /dev/null @@ -1,133 +0,0 @@ -//===-- ClangForward.h ------------------------------------------*- C++ -*-===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef liblldb_ClangForward_h_ -#define liblldb_ClangForward_h_ - - -#if defined(__cplusplus) - -namespace clang { -namespace Builtin { -class Context; -} - -class ASTConsumer; -class ASTContext; -class ASTRecordLayout; -class AddrLabelExpr; -class AnalyzerOptions; -class BinaryOperator; -class ClassTemplateDecl; -class ClassTemplateSpecializationDecl; -class CodeGenOptions; -class CodeGenerator; -class CompilerInstance; -class CompoundStmt; -class CXXBaseSpecifier; -class CXXBoolLiteralExpr; -class CXXFunctionalCastExpr; -class CXXMethodDecl; -class CXXNamedCastExpr; -class CXXRecordDecl; -class CXXThisExpr; -class CharacterLiteral; -class CompoundAssignOperator; -class Decl; -class DeclarationName; -class DeclaratorDecl; -class DeclContext; -class DeclRefExpr; -class DeclStmt; -class DependencyOutputOptions; -class Diagnostic; -class DiagnosticConsumer; -class DiagnosticsEngine; -class DiagnosticOptions; -class EnumDecl; -class EnumConstantDecl; -class Expr; -class ExternalASTSource; -class ExtVectorElementExpr; -class FieldDecl; -class FileManager; -class FileSystemOptions; -class FloatingLiteral; -class FrontendOptions; -class FunctionDecl; -class FunctionTemplateDecl; -class FunctionTemplateSpecializationInfo; -class GotoStmt; -class HeaderSearchOptions; -class IdentifierInfo; -class IdentifierTable; -class IntegerLiteral; -class LabelStmt; -class LangOptions; -class MacroDirective; -class MemberExpr; -class Module; -class NamedDecl; -class NamespaceDecl; -class NonTypeTemplateParmDecl; -class ObjCEncodeExpr; -class ObjCImplicitSetterGetterRefExpr; -class ObjCInterfaceDecl; -class ObjCIvarDecl; -class ObjCIvarRefExpr; -class ObjCMessageExpr; -class ObjCMethodDecl; -class ObjCPropertyRefExpr; -class ObjCProtocolDecl; -class ObjCProtocolExpr; -class ObjCSelectorExpr; -class ObjCSuperExpr; -class ParenExpr; -class ParmVarDecl; -class PredefinedExpr; -class PreprocessorOptions; -class PreprocessorOutputOptions; -class QualType; -class QualifiedNameType; -class RecordDecl; -class SelectorTable; -class SizeOfAlignOfExpr; -class SourceLocation; -class SourceManager; -class Stmt; -class StmtIteratorBase; -class StringLiteral; -class TagDecl; -class TargetInfo; -class TargetOptions; -class TemplateArgument; -class TemplateDecl; -class TemplateParameterList; -class TemplateTemplateParmDecl; -class TemplateTypeParmDecl; -class TextDiagnosticBuffer; -class TranslationUnitDecl; -class Type; -class TypeDecl; -class TypedefDecl; -class TypesCompatibleExpr; -class UnaryOperator; -class ValueDecl; -class VarDecl; -struct PrintingPolicy; -} - -namespace llvm { -class APInt; -class APSInt; -class LLVMContext; -class ExecutionEngine; -} - -#endif // #if defined(__cplusplus) -#endif // liblldb_ClangForward_h_ diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.h b/lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.h --- a/lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.h @@ -9,10 +9,17 @@ #ifndef liblldb_ASTResultSynthesizer_h_ #define liblldb_ASTResultSynthesizer_h_ -#include "lldb/Core/ClangForward.h" #include "lldb/Target/Target.h" #include "clang/Sema/SemaConsumer.h" +namespace clang { +class CompoundStmt; +class DeclContext; +class NamedDecl; +class ObjCMethodDecl; +class TypeDecl; +} // namespace clang + namespace lldb_private { /// \class ASTResultSynthesizer ASTResultSynthesizer.h diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.h b/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.h --- a/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.h @@ -12,7 +12,6 @@ #include "ClangExpressionVariable.h" #include "ClangFunctionCaller.h" -#include "lldb/Core/ClangForward.h" #include "clang/Sema/SemaConsumer.h" namespace lldb_private { diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangDeclVendor.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangDeclVendor.h --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangDeclVendor.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangDeclVendor.h @@ -9,9 +9,12 @@ #ifndef liblldb_ClangDeclVendor_h_ #define liblldb_ClangDeclVendor_h_ -#include "lldb/Core/ClangForward.h" #include "lldb/Symbol/DeclVendor.h" +namespace clang { +class NamedDecl; +} + namespace lldb_private { // A clang specialized extension to DeclVendor. diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h @@ -17,7 +17,6 @@ #include "ClangASTSource.h" #include "ClangExpressionVariable.h" -#include "lldb/Core/ClangForward.h" #include "lldb/Core/Value.h" #include "lldb/Expression/Materializer.h" #include "lldb/Symbol/SymbolContext.h" diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionHelper.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionHelper.h --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionHelper.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionHelper.h @@ -13,12 +13,14 @@ #include #include - -#include "lldb/Core/ClangForward.h" #include "lldb/Expression/ExpressionTypeSystemHelper.h" #include "lldb/lldb-forward.h" #include "lldb/lldb-private.h" +namespace clang { +class ASTConsumer; +} + namespace lldb_private { class RecordingMemoryManager; diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h @@ -9,7 +9,6 @@ #ifndef liblldb_ClangExpressionParser_h_ #define liblldb_ClangExpressionParser_h_ -#include "lldb/Core/ClangForward.h" #include "lldb/Expression/DiagnosticManager.h" #include "lldb/Expression/ExpressionParser.h" #include "lldb/Utility/ArchSpec.h" @@ -19,9 +18,15 @@ #include #include +namespace llvm { +class LLVMContext; +} + namespace clang { +class CodeGenerator; class CodeCompleteConsumer; -} +class CompilerInstance; +} // namespace clang namespace lldb_private { diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionVariable.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionVariable.h --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionVariable.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionVariable.h @@ -19,7 +19,6 @@ #include "llvm/Support/Casting.h" -#include "lldb/Core/ClangForward.h" #include "lldb/Core/Value.h" #include "lldb/Expression/ExpressionVariable.h" #include "lldb/Symbol/TaggedASTType.h" @@ -30,6 +29,10 @@ class Value; } +namespace clang { +class NamedDecl; +} + namespace lldb_private { class ValueObjectConstResult; diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangFunctionCaller.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangFunctionCaller.h --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangFunctionCaller.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangFunctionCaller.h @@ -12,7 +12,6 @@ #include "ClangExpressionHelper.h" #include "lldb/Core/Address.h" -#include "lldb/Core/ClangForward.h" #include "lldb/Core/Value.h" #include "lldb/Core/ValueObjectList.h" #include "lldb/Expression/FunctionCaller.h" diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.h --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.h @@ -9,7 +9,6 @@ #ifndef liblldb_ClangModulesDeclVendor_h #define liblldb_ClangModulesDeclVendor_h -#include "lldb/Core/ClangForward.h" #include "lldb/Symbol/SourceModule.h" #include "lldb/Target/Platform.h" diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.h --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.h @@ -20,7 +20,6 @@ #include "IRForTarget.h" #include "lldb/Core/Address.h" -#include "lldb/Core/ClangForward.h" #include "lldb/Expression/LLVMUserExpression.h" #include "lldb/Expression/Materializer.h" #include "lldb/Target/ExecutionContext.h" diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangUtilityFunction.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangUtilityFunction.h --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangUtilityFunction.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangUtilityFunction.h @@ -15,7 +15,6 @@ #include "ClangExpressionHelper.h" -#include "lldb/Core/ClangForward.h" #include "lldb/Expression/UtilityFunction.h" #include "lldb/lldb-forward.h" #include "lldb/lldb-private.h" diff --git a/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.h b/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.h --- a/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.h @@ -10,7 +10,6 @@ #ifndef liblldb_IRForTarget_h_ #define liblldb_IRForTarget_h_ -#include "lldb/Core/ClangForward.h" #include "lldb/Symbol/TaggedASTType.h" #include "lldb/Utility/ConstString.h" #include "lldb/Utility/Status.h" @@ -38,6 +37,10 @@ class Value; } +namespace clang { +class NamedDecl; +} + namespace lldb_private { class ClangExpressionDeclMap; class IRExecutionUnit; diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp --- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp @@ -15,13 +15,11 @@ #include "clang/AST/ASTContext.h" #include "clang/AST/DeclObjC.h" -#include "lldb/Core/ClangForward.h" #include "lldb/Host/OptionParser.h" #include "lldb/Symbol/CompilerType.h" #include "lldb/lldb-enumerations.h" #include "Plugins/TypeSystem/Clang/TypeSystemClang.h" -#include "lldb/Core/ClangForward.h" #include "lldb/Core/Debugger.h" #include "lldb/Core/Module.h" #include "lldb/Core/PluginManager.h" diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.h b/lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.h --- a/lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.h +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.h @@ -17,7 +17,6 @@ #include "llvm/Support/Casting.h" #include "lldb/Breakpoint/BreakpointPrecondition.h" -#include "lldb/Core/ClangForward.h" #include "lldb/Core/PluginInterface.h" #include "lldb/Core/ThreadSafeDenseMap.h" #include "lldb/Symbol/CompilerType.h" diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h @@ -19,7 +19,6 @@ #include "DWARFDefines.h" #include "DWARFFormValue.h" #include "LogChannelDWARF.h" -#include "lldb/Core/ClangForward.h" #include "lldb/Core/PluginInterface.h" #include "Plugins/ExpressionParser/Clang/ClangASTImporter.h" diff --git a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h --- a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h +++ b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h @@ -27,7 +27,6 @@ #include "llvm/ADT/SmallVector.h" #include "Plugins/ExpressionParser/Clang/ClangPersistentVariables.h" -#include "lldb/Core/ClangForward.h" #include "lldb/Expression/ExpressionVariable.h" #include "lldb/Symbol/CompilerType.h" #include "lldb/Symbol/TypeSystem.h"