[clang] 984ec02 - [Clang] Replace include with forward declaration (NFC) (#151292)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 30 03:18:41 PDT 2025


Author: Nikita Popov
Date: 2025-07-30T12:18:38+02:00
New Revision: 984ec022360805c308c105dccb594be218d57243

URL: https://github.com/llvm/llvm-project/commit/984ec022360805c308c105dccb594be218d57243
DIFF: https://github.com/llvm/llvm-project/commit/984ec022360805c308c105dccb594be218d57243.diff

LOG: [Clang] Replace include with forward declaration (NFC) (#151292)

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

Added: 
    

Modified: 
    clang/include/clang/AST/Expr.h

Removed: 
    


################################################################################
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