Skip to content

Commit d1b127b

Browse files
[clang] Remove unused forward declarations (NFC)
1 parent 435a5a3 commit d1b127b

25 files changed

+0
-70
lines changed

clang/lib/AST/CXXABI.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ namespace clang {
2121
class ASTContext;
2222
class CXXConstructorDecl;
2323
class DeclaratorDecl;
24-
class Expr;
2524
class MangleContext;
2625
class MangleNumberingContext;
2726
class MemberPointerType;

clang/lib/AST/Interp/ByteCodeExprGen.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ namespace clang {
2828
class QualType;
2929

3030
namespace interp {
31-
class Function;
32-
class State;
3331

3432
template <class Emitter> class LocalScope;
3533
template <class Emitter> class RecordScope;

clang/lib/AST/Interp/ByteCodeStmtGen.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,7 @@
2525
#include "llvm/ADT/Optional.h"
2626

2727
namespace clang {
28-
class QualType;
29-
3028
namespace interp {
31-
class Function;
32-
class State;
3329

3430
template <class Emitter> class LoopScope;
3531
template <class Emitter> class SwitchScope;

clang/lib/AST/Interp/Context.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
namespace clang {
2424
class ASTContext;
2525
class LangOptions;
26-
class Stmt;
2726
class FunctionDecl;
2827
class VarDecl;
2928

clang/lib/AST/Interp/InterpBlock.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ namespace clang {
2525
namespace interp {
2626
class Block;
2727
class DeadBlock;
28-
class Context;
2928
class InterpState;
3029
class Pointer;
31-
class Function;
3230
enum PrimType : unsigned;
3331

3432
/// A memory block, either on the stack or in the heap.

clang/lib/AST/Interp/Pointer.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ namespace clang {
2626
namespace interp {
2727
class Block;
2828
class DeadBlock;
29-
class Context;
30-
class InterpState;
3129
class Pointer;
32-
class Function;
3330
enum PrimType : unsigned;
3431

3532
/// A pointer to a memory block, live or dead.

clang/lib/AST/Interp/Program.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,12 @@ namespace clang {
2929
class RecordDecl;
3030
class Expr;
3131
class FunctionDecl;
32-
class Stmt;
3332
class StringLiteral;
3433
class VarDecl;
3534

3635
namespace interp {
3736
class Context;
38-
class State;
3937
class Record;
40-
class Scope;
4138

4239
/// The program contains and links the bytecode for all functions.
4340
class Program {

clang/lib/CodeGen/CGBlocks.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,7 @@
2626
#include "clang/Basic/TargetInfo.h"
2727

2828
namespace llvm {
29-
class Constant;
30-
class Function;
31-
class GlobalValue;
32-
class DataLayout;
33-
class FunctionType;
34-
class PointerType;
3529
class Value;
36-
class LLVMContext;
3730
}
3831

3932
namespace clang {

clang/lib/CodeGen/CGCXXABI.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class CXXConstructorDecl;
3131
class CXXDestructorDecl;
3232
class CXXMethodDecl;
3333
class CXXRecordDecl;
34-
class FieldDecl;
3534
class MangleContext;
3635

3736
namespace CodeGen {

clang/lib/CodeGen/CGCall.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,13 @@
2626
#include "ABIInfo.h"
2727

2828
namespace llvm {
29-
class AttributeList;
30-
class Function;
3129
class Type;
3230
class Value;
3331
} // namespace llvm
3432

3533
namespace clang {
36-
class ASTContext;
3734
class Decl;
3835
class FunctionDecl;
39-
class ObjCMethodDecl;
4036
class VarDecl;
4137

4238
namespace CodeGen {

0 commit comments

Comments
 (0)