[clang] [Clang] Replace include with forward declaration (NFC) (PR #151292)

Nikita Popov via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 30 01:36:29 PDT 2025


https://github.com/nikic created https://github.com/llvm/llvm-project/pull/151292

After https://github.com/llvm/llvm-project/pull/142541.

>From 49b5bb5077253be39495188f88edf1391cc2d63d Mon Sep 17 00:00:00 2001
From: Nikita Popov <npopov at redhat.com>
Date: Wed, 30 Jul 2025 10:33:50 +0200
Subject: [PATCH] [Clang] Replace include with forward declaration (NFC)

---
 clang/include/clang/AST/Expr.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/include/clang/AST/Expr.h b/clang/include/clang/AST/Expr.h
index 708c6e2925fd0..6c124aa96cdb4 100644
--- a/clang/include/clang/AST/Expr.h
+++ b/clang/include/clang/AST/Expr.h
@@ -16,7 +16,6 @@
 #include "clang/AST/APNumericStorage.h"
 #include "clang/AST/APValue.h"
 #include "clang/AST/ASTVector.h"
-#include "clang/AST/Attr.h"
 #include "clang/AST/ComputeDependence.h"
 #include "clang/AST/Decl.h"
 #include "clang/AST/DeclAccessPair.h"
@@ -58,6 +57,7 @@ namespace clang {
   class StringLiteral;
   class TargetInfo;
   class ValueDecl;
+  class WarnUnusedResultAttr;
 
 /// A simple array of base specifiers.
 typedef SmallVector<CXXBaseSpecifier*, 4> CXXCastPath;



More information about the cfe-commits mailing list