/// Get reference to previous declare mapper construct in the same
/// scope with the same name.
- OMPDeclareMapperDecl *getPrevDeclInScope() {
- return cast_or_null<OMPDeclareMapperDecl>(
- PrevDeclInScope.get(getASTContext().getExternalSource()));
- }
- const OMPDeclareMapperDecl *getPrevDeclInScope() const {
- return cast_or_null<OMPDeclareMapperDecl>(
- PrevDeclInScope.get(getASTContext().getExternalSource()));
- }
+ OMPDeclareMapperDecl *getPrevDeclInScope();
+ const OMPDeclareMapperDecl *getPrevDeclInScope() const;
static bool classof(const Decl *D) { return classofKind(D->getKind()); }
static bool classofKind(Kind K) { return K == OMPDeclareMapper; }
std::uninitialized_copy(CL.begin(), CL.end(), Clauses.data());
}
+OMPDeclareMapperDecl *OMPDeclareMapperDecl::getPrevDeclInScope() {
+ return cast_or_null<OMPDeclareMapperDecl>(
+ PrevDeclInScope.get(getASTContext().getExternalSource()));
+}
+
+const OMPDeclareMapperDecl *OMPDeclareMapperDecl::getPrevDeclInScope() const {
+ return cast_or_null<OMPDeclareMapperDecl>(
+ PrevDeclInScope.get(getASTContext().getExternalSource()));
+}
+
//===----------------------------------------------------------------------===//
// OMPCapturedExprDecl Implementation.
//===----------------------------------------------------------------------===//