[flang-commits] [flang] [flang] Add missing std includes (PR #211830)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Fri Jul 24 08:27:28 PDT 2026


https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/211830

Addressing post-commit review comments for
https://github.com/llvm/llvm-project/pull/211326.

>From cdc6669f223b542927135b8eae1e12dc8262ac30 Mon Sep 17 00:00:00 2001
From: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: Fri, 24 Jul 2026 10:25:13 -0500
Subject: [PATCH] [flang] Add missing std includes

Addressing post-commit review comments for
https://github.com/llvm/llvm-project/pull/211326.
---
 flang/lib/Semantics/check-acc-structure.h       |  5 +++++
 flang/lib/Semantics/check-directive-structure.h |  1 -
 flang/lib/Semantics/check-omp-structure.h       | 12 ++++++++++++
 3 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/flang/lib/Semantics/check-acc-structure.h b/flang/lib/Semantics/check-acc-structure.h
index 905e8d7de90bd..4f4019b3db9b8 100644
--- a/flang/lib/Semantics/check-acc-structure.h
+++ b/flang/lib/Semantics/check-acc-structure.h
@@ -21,6 +21,11 @@
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/Frontend/OpenACC/ACC.h.inc"
 
+#include <cstddef>
+#include <functional>
+#include <optional>
+#include <string>
+
 using AccDirectiveSet = Fortran::common::EnumSet<llvm::acc::Directive,
     llvm::acc::Directive_enumSize>;
 
diff --git a/flang/lib/Semantics/check-directive-structure.h b/flang/lib/Semantics/check-directive-structure.h
index 19576426c6c14..3061a5a94c2df 100644
--- a/flang/lib/Semantics/check-directive-structure.h
+++ b/flang/lib/Semantics/check-directive-structure.h
@@ -12,7 +12,6 @@
 #ifndef FORTRAN_SEMANTICS_CHECK_DIRECTIVE_STRUCTURE_H_
 #define FORTRAN_SEMANTICS_CHECK_DIRECTIVE_STRUCTURE_H_
 
-#include "flang/Common/enum-set.h"
 #include "flang/Semantics/semantics.h"
 #include "flang/Semantics/tools.h"
 #include "llvm/ADT/iterator_range.h"
diff --git a/flang/lib/Semantics/check-omp-structure.h b/flang/lib/Semantics/check-omp-structure.h
index 22106020bcc3b..0c9bfa48f73da 100644
--- a/flang/lib/Semantics/check-omp-structure.h
+++ b/flang/lib/Semantics/check-omp-structure.h
@@ -23,6 +23,18 @@
 #include "llvm/ADT/iterator_range.h"
 #include "llvm/Frontend/OpenMP/OMP.h"
 
+#include <cstddef>
+#include <functional>
+#include <list>
+#include <map>
+#include <optional>
+#include <set>
+#include <string>
+#include <string_view>
+#include <utility>
+#include <variant>
+#include <vector>
+
 #define GEN_FLANG_DIRECTIVE_CLAUSE_SETS
 #include "llvm/Frontend/OpenMP/OMP.inc"
 



More information about the flang-commits mailing list