[llvm] [LLVM] Add option to store Parent-pointer in ilist_node_base (PR #94224)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 3 07:04:06 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 b2bd024384b484647da9fd9863bf6f77b5731949 537c8f80bfed595ca3f061a2d53b5a8f5ce7802e -- llvm/include/llvm/ADT/ilist_base.h llvm/include/llvm/ADT/ilist_iterator.h llvm/include/llvm/ADT/ilist_node.h llvm/include/llvm/ADT/ilist_node_base.h llvm/include/llvm/ADT/ilist_node_options.h llvm/include/llvm/IR/BasicBlock.h llvm/include/llvm/IR/Instruction.h llvm/include/llvm/IR/ValueSymbolTable.h llvm/lib/IR/BasicBlock.cpp llvm/lib/IR/Instruction.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/ADT/ilist_node_options.h b/llvm/include/llvm/ADT/ilist_node_options.h
index aa32162cd5..07820eedb4 100644
--- a/llvm/include/llvm/ADT/ilist_node_options.h
+++ b/llvm/include/llvm/ADT/ilist_node_options.h
@@ -138,7 +138,9 @@ struct extract_parent<ilist_parent<ParentTy>, Options...> {
 };
 template <class Option1, class... Options>
 struct extract_parent<Option1, Options...> : extract_parent<Options...> {};
-template <> struct extract_parent<> { typedef void type; };
+template <> struct extract_parent<> {
+  typedef void type;
+};
 template <class ParentTy>
 struct is_valid_option<ilist_parent<ParentTy>> : std::true_type {};
 

``````````

</details>


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


More information about the llvm-commits mailing list