[flang-commits] [flang] [flang][OpenMP] Add `Id` function to `OmpClause` to return clause id,… (PR #112712)
via flang-commits
flang-commits at lists.llvm.org
Thu Oct 17 07:08:14 PDT 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 51b4ada4588ecb3044b57c325a59aedcc19d7084 c0a61f8ded0d94a3c96ad43880bae502bb65fc0c --extensions h,cpp -- flang/include/flang/Parser/parse-tree.h flang/lib/Lower/OpenMP/Clauses.cpp flang/lib/Parser/parse-tree.cpp 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/Parser/parse-tree.cpp b/flang/lib/Parser/parse-tree.cpp
index 42dd8fc122..948ad04a09 100644
--- a/flang/lib/Parser/parse-tree.cpp
+++ b/flang/lib/Parser/parse-tree.cpp
@@ -254,8 +254,7 @@ llvm::raw_ostream &operator<<(llvm::raw_ostream &os, const Name &x) {
}
} // namespace Fortran::parser
-template <typename C>
-static llvm::omp::Clause getClauseIdForClass(C &&) {
+template <typename C> static llvm::omp::Clause getClauseIdForClass(C &&) {
using namespace Fortran;
using A = llvm::remove_cvref_t<C>; // A is referenced in OMP.inc
// The code included below contains a sequence of checks like the following
``````````
</details>
https://github.com/llvm/llvm-project/pull/112712
More information about the flang-commits
mailing list