Skip to content

Commit e7a654c

Browse files
tbaederrkrishna2803
authored andcommitted
[clang][bytecode] Remove unused includes (llvm#151848)
UnsignedOrNone.h from PrimType.h and ASTLambda.h from Function.h.
1 parent 62a121e commit e7a654c

File tree

7 files changed

+7
-3
lines changed

7 files changed

+7
-3
lines changed

clang/lib/AST/ByteCode/Context.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "InterpStack.h"
1616
#include "PrimType.h"
1717
#include "Program.h"
18+
#include "clang/AST/ASTLambda.h"
1819
#include "clang/AST/Expr.h"
1920
#include "clang/Basic/TargetInfo.h"
2021

clang/lib/AST/ByteCode/Context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
#define LLVM_CLANG_AST_INTERP_CONTEXT_H
1818

1919
#include "InterpStack.h"
20+
#include "clang/AST/ASTContext.h"
2021

2122
namespace clang {
22-
class ASTContext;
2323
class LangOptions;
2424
class FunctionDecl;
2525
class VarDecl;

clang/lib/AST/ByteCode/Function.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include "Function.h"
1010
#include "Program.h"
11+
#include "clang/AST/ASTLambda.h"
1112
#include "clang/AST/Decl.h"
1213
#include "clang/AST/DeclCXX.h"
1314

clang/lib/AST/ByteCode/Function.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
#include "Descriptor.h"
1919
#include "Source.h"
20-
#include "clang/AST/ASTLambda.h"
2120
#include "clang/AST/Attr.h"
2221
#include "clang/AST/Decl.h"
22+
#include "clang/AST/DeclCXX.h"
2323
#include "llvm/ADT/PointerUnion.h"
2424
#include "llvm/Support/raw_ostream.h"
2525

clang/lib/AST/ByteCode/InterpState.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include "InterpStack.h"
1212
#include "Program.h"
1313
#include "State.h"
14+
#include "clang/AST/DeclCXX.h"
15+
#include "clang/AST/DeclTemplate.h"
1416

1517
using namespace clang;
1618
using namespace clang::interp;

clang/lib/AST/ByteCode/PrimType.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#ifndef LLVM_CLANG_AST_INTERP_TYPE_H
1414
#define LLVM_CLANG_AST_INTERP_TYPE_H
1515

16-
#include "clang/Basic/UnsignedOrNone.h"
1716
#include "llvm/Support/raw_ostream.h"
1817
#include <climits>
1918
#include <cstddef>

clang/lib/AST/ByteCode/Program.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "PrimType.h"
1414
#include "clang/AST/Decl.h"
1515
#include "clang/AST/DeclCXX.h"
16+
#include "clang/AST/DeclTemplate.h"
1617

1718
using namespace clang;
1819
using namespace clang::interp;

0 commit comments

Comments
 (0)