Skip to content

Commit c140ef5

Browse files
committed
[clang] Rename all AST/Interp stuff to AST/ByteCode
"Interp" clashes with the clang interpreter and people often confuse this.
1 parent 2221987 commit c140ef5

File tree

127 files changed

+57
-57
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+57
-57
lines changed

clang/docs/ClangFormattedStatus.rst

Lines changed: 1 addition & 1 deletion

clang/docs/tools/clang-formatted-files.txt

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -322,24 +322,24 @@ clang/lib/APINotes/APINotesTypes.cpp
322322
clang/lib/APINotes/APINotesYAMLCompiler.cpp
323323
clang/lib/AST/DataCollection.cpp
324324
clang/lib/AST/Linkage.h
325-
clang/lib/AST/Interp/ByteCodeGenError.cpp
326-
clang/lib/AST/Interp/ByteCodeGenError.h
327-
clang/lib/AST/Interp/Context.cpp
328-
clang/lib/AST/Interp/Context.h
329-
clang/lib/AST/Interp/Descriptor.cpp
330-
clang/lib/AST/Interp/Disasm.cpp
331-
clang/lib/AST/Interp/EvalEmitter.h
332-
clang/lib/AST/Interp/Frame.cpp
333-
clang/lib/AST/Interp/Frame.h
334-
clang/lib/AST/Interp/InterpState.h
335-
clang/lib/AST/Interp/Opcode.h
336-
clang/lib/AST/Interp/Pointer.cpp
337-
clang/lib/AST/Interp/PrimType.cpp
338-
clang/lib/AST/Interp/Record.h
339-
clang/lib/AST/Interp/Source.cpp
340-
clang/lib/AST/Interp/Source.h
341-
clang/lib/AST/Interp/State.cpp
342-
clang/lib/AST/Interp/State.h
325+
clang/lib/AST/ByteCode/ByteCodeGenError.cpp
326+
clang/lib/AST/ByteCode/ByteCodeGenError.h
327+
clang/lib/AST/ByteCode/Context.cpp
328+
clang/lib/AST/ByteCode/Context.h
329+
clang/lib/AST/ByteCode/Descriptor.cpp
330+
clang/lib/AST/ByteCode/Disasm.cpp
331+
clang/lib/AST/ByteCode/EvalEmitter.h
332+
clang/lib/AST/ByteCode/Frame.cpp
333+
clang/lib/AST/ByteCode/Frame.h
334+
clang/lib/AST/ByteCode/InterpState.h
335+
clang/lib/AST/ByteCode/Opcode.h
336+
clang/lib/AST/ByteCode/Pointer.cpp
337+
clang/lib/AST/ByteCode/PrimType.cpp
338+
clang/lib/AST/ByteCode/Record.h
339+
clang/lib/AST/ByteCode/Source.cpp
340+
clang/lib/AST/ByteCode/Source.h
341+
clang/lib/AST/ByteCode/State.cpp
342+
clang/lib/AST/ByteCode/State.h
343343
clang/lib/ASTMatchers/GtestMatchers.cpp
344344
clang/lib/ASTMatchers/Dynamic/Marshallers.cpp
345345
clang/lib/Basic/Attributes.cpp

clang/lib/AST/ASTContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#include "clang/AST/ASTContext.h"
1414
#include "CXXABI.h"
15-
#include "Interp/Context.h"
15+
#include "ByteCode/Context.h"
1616
#include "clang/AST/APValue.h"
1717
#include "clang/AST/ASTConcept.h"
1818
#include "clang/AST/ASTMutationListener.h"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

clang/lib/AST/CMakeLists.txt

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set(LLVM_LINK_COMPONENTS
1111
# another library which depends on clangAST.
1212
clang_tablegen(Opcodes.inc
1313
-gen-clang-opcodes
14-
SOURCE Interp/Opcodes.td
14+
SOURCE ByteCode/Opcodes.td
1515
TARGET Opcodes)
1616

1717
clang_tablegen(AttrDocTable.inc -gen-clang-attr-doc-table
@@ -64,31 +64,31 @@ add_clang_library(clangAST
6464
ExternalASTSource.cpp
6565
FormatString.cpp
6666
InheritViz.cpp
67-
Interp/ByteCodeEmitter.cpp
68-
Interp/Compiler.cpp
69-
Interp/Context.cpp
70-
Interp/Descriptor.cpp
71-
Interp/Disasm.cpp
72-
Interp/EvalEmitter.cpp
73-
Interp/Frame.cpp
74-
Interp/Function.cpp
75-
Interp/InterpBuiltin.cpp
76-
Interp/Floating.cpp
77-
Interp/EvaluationResult.cpp
78-
Interp/DynamicAllocator.cpp
79-
Interp/Interp.cpp
80-
Interp/InterpBlock.cpp
81-
Interp/InterpFrame.cpp
82-
Interp/InterpStack.cpp
83-
Interp/InterpState.cpp
84-
Interp/Pointer.cpp
85-
Interp/PrimType.cpp
86-
Interp/Program.cpp
87-
Interp/Record.cpp
88-
Interp/Source.cpp
89-
Interp/State.cpp
90-
Interp/MemberPointer.cpp
91-
Interp/InterpShared.cpp
67+
ByteCode/ByteCodeEmitter.cpp
68+
ByteCode/Compiler.cpp
69+
ByteCode/Context.cpp
70+
ByteCode/Descriptor.cpp
71+
ByteCode/Disasm.cpp
72+
ByteCode/EvalEmitter.cpp
73+
ByteCode/Frame.cpp
74+
ByteCode/Function.cpp
75+
ByteCode/InterpBuiltin.cpp
76+
ByteCode/Floating.cpp
77+
ByteCode/EvaluationResult.cpp
78+
ByteCode/DynamicAllocator.cpp
79+
ByteCode/Interp.cpp
80+
ByteCode/InterpBlock.cpp
81+
ByteCode/InterpFrame.cpp
82+
ByteCode/InterpStack.cpp
83+
ByteCode/InterpState.cpp
84+
ByteCode/Pointer.cpp
85+
ByteCode/PrimType.cpp
86+
ByteCode/Program.cpp
87+
ByteCode/Record.cpp
88+
ByteCode/Source.cpp
89+
ByteCode/State.cpp
90+
ByteCode/MemberPointer.cpp
91+
ByteCode/InterpShared.cpp
9292
ItaniumCXXABI.cpp
9393
ItaniumMangle.cpp
9494
JSONNodeDumper.cpp

clang/lib/AST/ExprConstShared.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//===----------------------------------------------------------------------===//
88
//
99
// Shared functionality between the new constant expression
10-
// interpreter (AST/Interp/) and the current one (ExprConstant.cpp).
10+
// interpreter (AST/ByteCode/) and the current one (ExprConstant.cpp).
1111
//
1212
//===----------------------------------------------------------------------===//
1313

clang/lib/AST/ExprConstant.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
//===----------------------------------------------------------------------===//
3434

3535
#include "ExprConstShared.h"
36-
#include "Interp/Context.h"
37-
#include "Interp/Frame.h"
38-
#include "Interp/State.h"
36+
#include "ByteCode/Context.h"
37+
#include "ByteCode/Frame.h"
38+
#include "ByteCode/State.h"
3939
#include "clang/AST/APValue.h"
4040
#include "clang/AST/ASTContext.h"
4141
#include "clang/AST/ASTDiagnostic.h"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

clang/unittests/AST/Interp/Descriptor.cpp renamed to clang/unittests/AST/ByteCode/Descriptor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#include "../../../lib/AST/Interp/Descriptor.h"
2-
#include "../../../lib/AST/Interp/Context.h"
3-
#include "../../../lib/AST/Interp/Program.h"
1+
#include "../../../lib/AST/ByteCode/Descriptor.h"
2+
#include "../../../lib/AST/ByteCode/Context.h"
3+
#include "../../../lib/AST/ByteCode/Program.h"
44
#include "clang/AST/ASTContext.h"
55
#include "clang/AST/Decl.h"
66
#include "clang/ASTMatchers/ASTMatchFinder.h"

clang/unittests/AST/Interp/toAPValue.cpp renamed to clang/unittests/AST/ByteCode/toAPValue.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#include "../../../lib/AST/Interp/Context.h"
2-
#include "../../../lib/AST/Interp/Descriptor.h"
3-
#include "../../../lib/AST/Interp/Program.h"
1+
#include "../../../lib/AST/ByteCode/Context.h"
2+
#include "../../../lib/AST/ByteCode/Descriptor.h"
3+
#include "../../../lib/AST/ByteCode/Program.h"
44
#include "clang/AST/ASTContext.h"
55
#include "clang/AST/Decl.h"
66
#include "clang/ASTMatchers/ASTMatchFinder.h"

clang/unittests/AST/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set(LLVM_LINK_COMPONENTS
55
)
66

77

8-
add_subdirectory(Interp)
8+
add_subdirectory(ByteCode)
99

1010
add_clang_unittest(ASTTests
1111
ASTContextParentMapTest.cpp

0 commit comments

Comments
 (0)