[clang] [clang][opencl] Allow passing all zeros to reqd_work_group_size (PR #131543)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 16 16:06:20 PDT 2025
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 3e6f618e86f5fbad2c2d5802416ec3d3366a2837 eed71b8c5a5ae670fa33ce4c20c9cbb72bbcf511 --extensions cpp -- clang/lib/Sema/SemaDeclAttr.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index c664ae30d2..769f5316ed 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -2925,12 +2925,12 @@ static void handleWorkGroupSize(Sema &S, Decl *D, const ParsedAttr &AL) {
return;
}
- if (!llvm::all_of(WGSize, [](uint32_t Size) { return Size == 0; })) {
+ if (!llvm::all_of(WGSize, [](uint32_t Size) { return Size == 0; })) {
for (unsigned i = 0; i < 3; ++i) {
const Expr *E = AL.getArgAsExpr(i);
if (WGSize[i] == 0) {
S.Diag(AL.getLoc(), diag::err_attribute_argument_is_zero)
- << AL << E->getSourceRange();
+ << AL << E->getSourceRange();
return;
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/131543
More information about the cfe-commits
mailing list