[clang] [Clang] Replace include with forward declaration (NFC) (PR #151292)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 30 01:37:04 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Nikita Popov (nikic)
<details>
<summary>Changes</summary>
After https://github.com/llvm/llvm-project/pull/142541.
---
Full diff: https://github.com/llvm/llvm-project/pull/151292.diff
1 Files Affected:
- (modified) clang/include/clang/AST/Expr.h (+1-1)
``````````diff
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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/151292
More information about the cfe-commits
mailing list