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 cl,h,cpp --
clang/test/SemaOpenCL/read-image-integer-linear-filter.cl
clang/include/clang/Sema/SemaOpenCL.h clang/lib/Sema/SemaExpr.cpp
clang/lib/Sema/SemaOpenCL.cpp --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/SemaOpenCL.cpp b/clang/lib/Sema/SemaOpenCL.cpp
index d307858e1..832c8fd66 100644
--- a/clang/lib/Sema/SemaOpenCL.cpp
+++ b/clang/lib/Sema/SemaOpenCL.cpp
@@ -620,8 +620,7 @@ void SemaOpenCL::checkBuiltinReadImage(FunctionDecl *FDecl,
CallExpr *Call) {
// Bit layout: |...|FilterMode[5:4]|AddressMode[3:1]|NormalizedCoords[0]|
// CLK_FILTER_LINEAR = 0x20 => FilterMode bits = 2
if (((SamplerValue & 0x30u) >> 4) == 2)
- Diag(SamplerArg->getExprLoc(),
- diag::warn_sampler_argument_invalid_filter)
+ Diag(SamplerArg->getExprLoc(), diag::warn_sampler_argument_invalid_filter)
<< Name << SamplerArg->getSourceRange();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/204086
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits