[flang-commits] [flang] [flang] Add ability to have special allocator for descriptor data (PR #100690)
via flang-commits
flang-commits at lists.llvm.org
Mon Jul 29 09:30:42 PDT 2024
Valentin Clement =?utf-8?b?KOODkOODrOODsw=?Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/100690 at github.com>
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 80d1c6acc013ec85d6e1724429a8290f4411f853 2b0f2844a7a475d8953de7e0b377dc28bcc2a82d --extensions h,cpp -- flang/runtime/allocator-registry.cpp flang/runtime/allocator-registry.h flang/include/flang/ISO_Fortran_binding.h flang/include/flang/Optimizer/CodeGen/TBAABuilder.h flang/include/flang/Optimizer/CodeGen/TypeConverter.h flang/include/flang/Runtime/descriptor.h flang/lib/Optimizer/CodeGen/CodeGen.cpp flang/lib/Optimizer/CodeGen/TypeConverter.cpp flang/runtime/ISO_Fortran_util.h flang/runtime/descriptor.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/include/flang/ISO_Fortran_binding.h b/flang/include/flang/ISO_Fortran_binding.h
index 03d67ec535..ff202493ac 100644
--- a/flang/include/flang/ISO_Fortran_binding.h
+++ b/flang/include/flang/ISO_Fortran_binding.h
@@ -167,9 +167,7 @@ typedef struct CFI_cdesc_t {
RT_API_ATTRS inline bool HasAddendum() const {
return extra & _CFI_ADDENDUM_FLAG;
}
- RT_API_ATTRS inline void SetHasAddendum() {
- extra |= _CFI_ADDENDUM_FLAG;
- }
+ RT_API_ATTRS inline void SetHasAddendum() { extra |= _CFI_ADDENDUM_FLAG; }
RT_API_ATTRS inline int GetAllocIdx() const {
return ((int)extra >> _CFI_ADDENDUM_BITS);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/100690
More information about the flang-commits
mailing list