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 --
clang/lib/Driver/ToolChains/Clang.cpp clang/test/Driver/sycl-offload-jit.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/Driver/ToolChains/Clang.cpp
b/clang/lib/Driver/ToolChains/Clang.cpp
index 4eaabdc9d..0aedcef6f 100644
--- a/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/clang/lib/Driver/ToolChains/Clang.cpp
@@ -9881,12 +9881,11 @@ void LinkerWrapper::ConstructJob(Compilation &C, const
JobAction &JA,
if (Kind == Action::OFK_SYCL) {
if (Arg *A = ToolChainArgs.getLastArg(OPT_fsycl_device_code_split_EQ))
{
StringRef Mode = A->getValue();
- StringRef SplitMode =
- llvm::StringSwitch<StringRef>(Mode)
- .Case("per_kernel", "kernel")
- .Case("per_source", "source")
- .Case("off", "none")
- .Default("");
+ StringRef SplitMode = llvm::StringSwitch<StringRef>(Mode)
+ .Case("per_kernel", "kernel")
+ .Case("per_source", "source")
+ .Case("off", "none")
+ .Default("");
if (SplitMode.empty())
C.getDriver().Diag(clang::diag::err_drv_invalid_value)
<< A->getSpelling() << Mode;
``````````
</details>
https://github.com/llvm/llvm-project/pull/206870
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits