[clang] [clang][bytecode][NFC] Remove unnecessary include (PR #223610)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 14 23:55:54 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Timm Baeder (tbaederr)
<details>
<summary>Changes</summary>
Replace it with a forward declaration.
---
Full diff: https://github.com/llvm/llvm-project/pull/223610.diff
1 Files Affected:
- (modified) clang/lib/AST/ByteCode/Record.cpp (+4-1)
``````````diff
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)
``````````
</details>
https://github.com/llvm/llvm-project/pull/223610
More information about the cfe-commits
mailing list