[flang-commits] [flang] [flang] Lower volatile class types (PR #138607)

via flang-commits flang-commits at lists.llvm.org
Mon May 5 15:58:55 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/Lower/ConvertExprToHLFIR.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/lib/Lower/ConvertExprToHLFIR.cpp b/flang/lib/Lower/ConvertExprToHLFIR.cpp
index dd7f6db6f..04b63f92a 100644
--- a/flang/lib/Lower/ConvertExprToHLFIR.cpp
+++ b/flang/lib/Lower/ConvertExprToHLFIR.cpp
@@ -205,8 +205,8 @@ private:
       partInfo.resultShape =
           hlfir::genShape(getLoc(), getBuilder(), *partInfo.base);
 
-    // Enable volatility on the designatory type if it has the VOLATILE attribute
-    // or if the base is volatile.
+    // Enable volatility on the designatory type if it has the VOLATILE
+    // attribute or if the base is volatile.
     bool isVolatile = false;
 
     // Check if this should be a volatile reference

``````````

</details>


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


More information about the flang-commits mailing list