Skip to content

Conversation

@kparzysz
Copy link
Contributor

Add declarations/includes of Scope and Symbol to Semantics/openmp-utils.

Add declarations/includes of Scope and Symbol to Semantics/openmp-utils.
@llvmbot llvmbot added flang Flang issues not falling into any other category flang:semantics labels Oct 23, 2025
@llvmbot
Copy link
Member

llvmbot commented Oct 23, 2025

@llvm/pr-subscribers-flang-semantics

Author: Krzysztof Parzyszek (kparzysz)

Changes

Add declarations/includes of Scope and Symbol to Semantics/openmp-utils.


Full diff: https://github.com/llvm/llvm-project/pull/164860.diff

2 Files Affected:

  • (modified) flang/include/flang/Semantics/openmp-utils.h (+1)
  • (modified) flang/lib/Semantics/openmp-utils.cpp (+2-1)
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 
@kparzysz kparzysz merged commit 4d80e0c into main Oct 23, 2025
11 of 12 checks passed
@kparzysz kparzysz deleted the users/kparzysz/forward-declare branch October 23, 2025 18:15
dvbuka pushed a commit to dvbuka/llvm-project that referenced this pull request Oct 27, 2025
…64860) Add declarations/includes of Scope and Symbol to Semantics/openmp-utils.
Lukacma pushed a commit to Lukacma/llvm-project that referenced this pull request Oct 29, 2025
…64860) Add declarations/includes of Scope and Symbol to Semantics/openmp-utils.
aokblast pushed a commit to aokblast/llvm-project that referenced this pull request Oct 30, 2025
…64860) Add declarations/includes of Scope and Symbol to Semantics/openmp-utils.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flang:semantics flang Flang issues not falling into any other category

3 participants