[clang] [CIR] Inheriting Constructor/inheriting ctor inlining lowering (PR #191467)

via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 10 10:03:07 PDT 2026


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 origin/main HEAD --extensions h,cpp -- clang/test/CIR/CodeGen/inherited-ctors.cpp clang/lib/CIR/CodeGen/CIRGenCall.cpp clang/lib/CIR/CodeGen/CIRGenClass.cpp clang/lib/CIR/CodeGen/CIRGenExprAggregate.cpp clang/lib/CIR/CodeGen/CIRGenFunction.cpp clang/lib/CIR/CodeGen/CIRGenFunction.h clang/lib/CIR/CodeGen/CIRGenTypes.h --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/clang/lib/CIR/CodeGen/CIRGenCall.cpp b/clang/lib/CIR/CodeGen/CIRGenCall.cpp
index 4dc24113f..9341cd7d6 100644
--- a/clang/lib/CIR/CodeGen/CIRGenCall.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenCall.cpp
@@ -1427,8 +1427,8 @@ void CIRGenFunction::emitCallArgs(
   }
 }
 
-bool CIRGenTypes::inheritingCtorHasParams(
-    const InheritedConstructor &inherited, CXXCtorType type) {
+bool CIRGenTypes::inheritingCtorHasParams(const InheritedConstructor &inherited,
+                                          CXXCtorType type) {
   // Parameters are unnecessary if we're constructing a base class subobject
   // and the inherited constructor lives in a virtual base.
   return type == Ctor_Complete ||

``````````

</details>


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


More information about the cfe-commits mailing list