[flang-commits] [flang] Skip contiguous check when ignore_tkr(c) is used (PR #138762)

via flang-commits flang-commits at lists.llvm.org
Tue May 6 14:04:29 PDT 2025


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 HEAD~1 HEAD --extensions cpp -- flang/lib/Semantics/check-call.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/lib/Semantics/check-call.cpp b/flang/lib/Semantics/check-call.cpp
index 58271d7ca..af8c85d58 100644
--- a/flang/lib/Semantics/check-call.cpp
+++ b/flang/lib/Semantics/check-call.cpp
@@ -1016,8 +1016,8 @@ static void CheckExplicitDataArg(const characteristics::DummyDataObject &dummy,
       }
     }
     if (dummyDataAttr == common::CUDADataAttr::Device &&
-        (dummyIsAssumedShape || dummyIsAssumedRank)
-        !dummy.ignoreTKR.test(common::IgnoreTKR::Contiguous)) {
+        (dummyIsAssumedShape || dummyIsAssumedRank) !dummy.ignoreTKR.test(
+            common::IgnoreTKR::Contiguous)) {
       if (auto contig{evaluate::IsContiguous(actual, foldingContext,
               /*namedConstantSectionsAreContiguous=*/true,
               /*firstDimensionStride1=*/true)}) {

``````````

</details>


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


More information about the flang-commits mailing list