[clang] fdd8991 - [clang][bytecode] Clean up includes around Frame/State (#220278)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 2 00:46:37 PDT 2026
Author: Timm Baeder
Date: 2026-09-02T09:46:31+02:00
New Revision: fdd899123f7b5f9e30cd270f93966448b31b3b47
URL: https://github.com/llvm/llvm-project/commit/fdd899123f7b5f9e30cd270f93966448b31b3b47
DIFF: https://github.com/llvm/llvm-project/commit/fdd899123f7b5f9e30cd270f93966448b31b3b47.diff
LOG: [clang][bytecode] Clean up includes around Frame/State (#220278)
Added:
Modified:
clang/lib/AST/ByteCode/Frame.h
clang/lib/AST/ByteCode/InterpFrame.cpp
clang/lib/AST/ByteCode/State.cpp
clang/lib/AST/ByteCode/State.h
Removed:
################################################################################
diff --git a/clang/lib/AST/ByteCode/Frame.h b/clang/lib/AST/ByteCode/Frame.h
index b67a77a368997..2d024dcff7d02 100644
--- a/clang/lib/AST/ByteCode/Frame.h
+++ b/clang/lib/AST/ByteCode/Frame.h
@@ -14,7 +14,10 @@
#define LLVM_CLANG_AST_INTERP_FRAME_H
#include "clang/Basic/SourceLocation.h"
-#include "llvm/Support/raw_ostream.h"
+
+namespace llvm {
+class raw_ostream;
+} // namespace llvm
namespace clang {
class FunctionDecl;
diff --git a/clang/lib/AST/ByteCode/InterpFrame.cpp b/clang/lib/AST/ByteCode/InterpFrame.cpp
index b895dee3ae1ec..4079e9718f1c3 100644
--- a/clang/lib/AST/ByteCode/InterpFrame.cpp
+++ b/clang/lib/AST/ByteCode/InterpFrame.cpp
@@ -15,7 +15,6 @@
#include "MemberPointer.h"
#include "Pointer.h"
#include "PrimType.h"
-#include "Program.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/ExprCXX.h"
diff --git a/clang/lib/AST/ByteCode/State.cpp b/clang/lib/AST/ByteCode/State.cpp
index d8e9504e1a8e5..9dc7d86b3809f 100644
--- a/clang/lib/AST/ByteCode/State.cpp
+++ b/clang/lib/AST/ByteCode/State.cpp
@@ -8,8 +8,7 @@
#include "State.h"
#include "Frame.h"
-#include "Program.h"
-#include "clang/AST/ASTContext.h"
+#include "Source.h"
#include "clang/AST/CXXInheritance.h"
#include "clang/AST/OptionalDiagnostic.h"
diff --git a/clang/lib/AST/ByteCode/State.h b/clang/lib/AST/ByteCode/State.h
index 0fed26e14007b..0306969898ed7 100644
--- a/clang/lib/AST/ByteCode/State.h
+++ b/clang/lib/AST/ByteCode/State.h
@@ -19,8 +19,6 @@
#include "clang/AST/OptionalDiagnostic.h"
namespace clang {
-class OptionalDiagnostic;
-
/// Kinds of access we can perform on an object, for diagnostics. Note that
/// we consider a member function call to be a kind of access, even though
/// it is not formally an access of the object, because it has (largely) the
More information about the cfe-commits
mailing list