[flang-commits] [flang] [flang][openacc] Check trip count invariance with other IVs (PR #79906)

via flang-commits flang-commits at lists.llvm.org
Mon Jan 29 14:20:44 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 547c395b279a93357082ac06cf3e8fe37ebfc3fe 662f1436fef0ba19fe1d6d538b879621b6870700 -- flang/lib/Semantics/resolve-directives.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/lib/Semantics/resolve-directives.cpp b/flang/lib/Semantics/resolve-directives.cpp
index 37821b8741..dd9d79466e 100644
--- a/flang/lib/Semantics/resolve-directives.cpp
+++ b/flang/lib/Semantics/resolve-directives.cpp
@@ -1267,11 +1267,11 @@ void AccAttributeVisitor::CheckAssociatedLoop(
   };
 
   Symbol::Flag flag;
-  llvm::SmallVector<Symbol*> ivs;
+  llvm::SmallVector<Symbol *> ivs;
   using Bounds = parser::LoopControl::Bounds;
   for (const parser::DoConstruct *loop{&outerDoConstruct}; loop && level > 0;) {
     // Go through all nested loops to ensure index variable exists.
-    if (const parser::Name *ivName{GetLoopIndex(*loop)}) {
+    if (const parser::Name * ivName{GetLoopIndex(*loop)}) {
       if (auto *symbol{ResolveAcc(*ivName, flag, currScope())}) {
         if (auto &control = loop->GetLoopControl()) {
           if (const Bounds * b{std::get_if<Bounds>(&control->u)}) {

``````````

</details>


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


More information about the flang-commits mailing list