Skip to content

Commit d4ff961

Browse files
committed
Add missing #include for ObjCMethodDecl.
DeclBase.h only contains a forward declaration of ObjCMethodDecl, and when building clang/Sema/Attr.h with header modules this causes a build failure because `llvm::isa<ObjCMethodDecl>` requires the full type.
1 parent 235ddbd commit d4ff961

File tree

1 file changed

+1
-1
lines changed
  • clang/include/clang/Sema

1 file changed

+1
-1
lines changed

clang/include/clang/Sema/Attr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#define LLVM_CLANG_SEMA_ATTR_H
1515

1616
#include "clang/AST/Decl.h"
17-
#include "clang/AST/DeclBase.h"
17+
#include "clang/AST/DeclObjC.h"
1818
#include "llvm/Support/Casting.h"
1919

2020
namespace clang {

0 commit comments

Comments
 (0)