Skip to content

Commit 1164d43

Browse files
committed
Include Stmt.h where it seems to be necessary for modules builds
Summary: After 60573ae removed an include of Expr.h from ASTContext.h, this header fails to compile in some modular build configurations. I have not been able to reproduce the problem locally. The header compiles fine in isolation. However, based on reading the code, it seems like it would require Stmt to be complete. Based on that intuition, we decided to add the include. Reviewers: rdhindsa Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D71222
1 parent d9ae493 commit 1164d43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/include/clang/Tooling/Refactoring/ASTSelection.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#define LLVM_CLANG_TOOLING_REFACTOR_AST_SELECTION_H
1111

1212
#include "clang/AST/ASTTypeTraits.h"
13+
#include "clang/AST/Stmt.h"
1314
#include "clang/Basic/LLVM.h"
1415
#include "clang/Basic/SourceLocation.h"
1516
#include <vector>

0 commit comments

Comments
 (0)