[clang] [clang][bytecode][NFC] Remove unnecessary include (PR #223610)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 14 23:55:11 PDT 2026
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/223610
Replace it with a forward declaration.
>From ecdbbb4ffe3ef0e2cb356b81ba1c417e38ffdb16 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbaeder at redhat.com>
Date: Tue, 15 Sep 2026 08:52:13 +0200
Subject: [PATCH] [clang][bytecode][NFC] Remove unnecessary include
Replace it with a forward declaration.
---
clang/lib/AST/ByteCode/Record.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/clang/lib/AST/ByteCode/Record.cpp b/clang/lib/AST/ByteCode/Record.cpp
index 7faebda880c80..976d8c2d42074 100644
--- a/clang/lib/AST/ByteCode/Record.cpp
+++ b/clang/lib/AST/ByteCode/Record.cpp
@@ -7,11 +7,14 @@
//===----------------------------------------------------------------------===//
#include "Record.h"
-#include "clang/AST/ASTContext.h"
using namespace clang;
using namespace clang::interp;
+namespace clang {
+class ASTContext;
+} // namespace clang
+
Record::Record(const RecordDecl *Decl, BaseList &&SrcBases,
FieldList &&SrcFields, VirtualBaseList &&SrcVirtualBases,
unsigned VirtualSize, unsigned BaseSize, bool HasPtrField)
More information about the cfe-commits
mailing list