[flang-commits] [flang] [flang][OpenMP] Add missing forward declarations and includes (PR #164860)
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Thu Oct 23 10:53:29 PDT 2025
https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/164860
Add declarations/includes of Scope and Symbol to Semantics/openmp-utils.
>From 39715ebfad5c42f7d97c4bf4b3ece7f3fadf085c Mon Sep 17 00:00:00 2001
From: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: Thu, 23 Oct 2025 12:24:28 -0500
Subject: [PATCH] [flang][OpenMP] Add missing forward declarations and includes
Add declarations/includes of Scope and Symbol to Semantics/openmp-utils.
---
flang/include/flang/Semantics/openmp-utils.h | 1 +
flang/lib/Semantics/openmp-utils.cpp | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/flang/include/flang/Semantics/openmp-utils.h b/flang/include/flang/Semantics/openmp-utils.h
index 7539d12264435..032944d8be370 100644
--- a/flang/include/flang/Semantics/openmp-utils.h
+++ b/flang/include/flang/Semantics/openmp-utils.h
@@ -28,6 +28,7 @@
#include <utility>
namespace Fortran::semantics {
+class Scope;
class SemanticsContext;
class Symbol;
diff --git a/flang/lib/Semantics/openmp-utils.cpp b/flang/lib/Semantics/openmp-utils.cpp
index cc55bb4954cc3..6b304b62ef867 100644
--- a/flang/lib/Semantics/openmp-utils.cpp
+++ b/flang/lib/Semantics/openmp-utils.cpp
@@ -26,7 +26,9 @@
#include "flang/Parser/openmp-utils.h"
#include "flang/Parser/parse-tree.h"
#include "flang/Semantics/expression.h"
+#include "flang/Semantics/scope.h"
#include "flang/Semantics/semantics.h"
+#include "flang/Semantics/symbol.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/STLExtras.h"
@@ -505,5 +507,4 @@ bool IsStrictlyStructuredBlock(const parser::Block &block) {
return false;
}
}
-
} // namespace Fortran::semantics::omp
More information about the flang-commits
mailing list