[flang-commits] [flang] [flang][OpenMP][OpenACC] Use iterator_range in check-directive-struct… (PR #115872)

via flang-commits flang-commits at lists.llvm.org
Tue Nov 12 06:19:30 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 9652c1cc098fb2b237f0d4c91f3b3414f7afdbe1 2b36d53de0d18e17c89f57608ac51d5c9d4b3954 --extensions h,cpp -- flang/lib/Semantics/check-directive-structure.h flang/lib/Semantics/check-omp-structure.cpp flang/lib/Semantics/check-omp-structure.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/flang/lib/Semantics/check-directive-structure.h b/flang/lib/Semantics/check-directive-structure.h
index 9578922bc8..91ffda6404 100644
--- a/flang/lib/Semantics/check-directive-structure.h
+++ b/flang/lib/Semantics/check-directive-structure.h
@@ -294,8 +294,7 @@ protected:
     return nullptr;
   }
 
-  llvm::iterator_range<typename ClauseMapTy::iterator>
-  FindClauses(C type) {
+  llvm::iterator_range<typename ClauseMapTy::iterator> FindClauses(C type) {
     auto it{GetContext().clauseInfo.equal_range(type)};
     return llvm::make_range(it);
   }

``````````

</details>


https://github.com/llvm/llvm-project/pull/115872


More information about the flang-commits mailing list