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 cpp,cl --
clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp clang/lib/Sema/SemaAMDGPU.cpp
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGenOpenCL/builtins-amdgcn-gfx12.cl
clang/test/CodeGenOpenCL/builtins-amdgcn.cl --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/Sema/SemaAMDGPU.cpp b/clang/lib/Sema/SemaAMDGPU.cpp
index d5403f22e..8fce0a56b 100644
--- a/clang/lib/Sema/SemaAMDGPU.cpp
+++ b/clang/lib/Sema/SemaAMDGPU.cpp
@@ -303,8 +303,8 @@ bool SemaAMDGPU::CheckAMDGCNBuiltinFunctionCall(unsigned
BuiltinID,
if ((!ValTy->isIntegerType() && !ValTy->isFloatingType()) ||
SemaRef.getASTContext().getTypeSize(ValTy) > 32)
return Diag(Val->getExprLoc(), diag::err_builtin_invalid_arg_type)
- << Val << /*scalar=*/1 << /*'int'=*/4 << /*floating point=*/2
- << ValTy;
+ << Val << /*scalar=*/1 << /*'int'=*/4 << /*floating point=*/2
+ << ValTy;
Expr *Idx = TheCall->getArg(1);
QualType IdxTy = Idx->getType();
@@ -312,8 +312,8 @@ bool SemaAMDGPU::CheckAMDGCNBuiltinFunctionCall(unsigned
BuiltinID,
return Diag(Idx->getExprLoc(), diag::err_typecheck_expect_int) << IdxTy;
if (SemaRef.getASTContext().getTypeSize(IdxTy) > 32)
return Diag(Idx->getExprLoc(), diag::err_builtin_invalid_arg_type)
- << Idx << /*scalar=*/1 << /*'int'=*/4 << /*floating point=*/0
- << IdxTy;
+ << Idx << /*scalar=*/1 << /*'int'=*/4 << /*floating point=*/0
+ << IdxTy;
// Resolve the overload here, now that we know that the invocation is
// correct: the intrinsic returns the type of the value argument.
``````````
</details>
https://github.com/llvm/llvm-project/pull/179492
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits