[clang] [Clang] No longer require complete types with __builtin_launder (PR #91070)

via cfe-commits cfe-commits at lists.llvm.org
Sat May 4 09:38:49 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 028f1b078193b9120ddb441808521b6bd6eaed0e 21d9f27692b2a2fa9ac99f4644109e62e3730133 -- clang/lib/CodeGen/CGBuiltin.cpp clang/lib/Sema/SemaChecking.cpp clang/test/CodeGenCXX/builtin-launder.cpp clang/test/SemaCXX/builtins.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index c2eb5b5197..9ed404f9e7 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -2164,7 +2164,8 @@ static ExprResult BuiltinLaunder(Sema &S, CallExpr *TheCall) {
   //  * The type of the argument if it's not an array or function type,
   //  Otherwise,
   //  * The decayed argument type.
-  QualType ParamTy = S.Context.getAdjustedParameterType(TheCall->getArg(0)->getType());
+  QualType ParamTy =
+      S.Context.getAdjustedParameterType(TheCall->getArg(0)->getType());
 
   TheCall->setType(ParamTy);
 

``````````

</details>


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


More information about the cfe-commits mailing list