[clang] [SYCL] do not support any SYCL standard except 2020 (PR #120258)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 17 08:22:00 PST 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 d280a9c5e22662fd24708245add50b152ab10fc8 30106cd8d6ce752ab0bcf997a1143dd6b0cb270e --extensions cpp,h -- clang/include/clang/Basic/LangOptions.h clang/lib/Frontend/InitPreprocessor.cpp clang/test/Preprocessor/sycl-macro.cpp clang/unittests/Frontend/CompilerInvocationTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/unittests/Frontend/CompilerInvocationTest.cpp b/clang/unittests/Frontend/CompilerInvocationTest.cpp
index dcaa6edf9b..8461b62388 100644
--- a/clang/unittests/Frontend/CompilerInvocationTest.cpp
+++ b/clang/unittests/Frontend/CompilerInvocationTest.cpp
@@ -648,7 +648,6 @@ TEST_F(CommandLineTest, ConditionalParsingIfOddSyclStdArg1) {
Invocation.generateCC1CommandLine(GeneratedArgs, *this);
-
ASSERT_THAT(GeneratedArgs, Contains(StrEq("-fsycl-is-device")));
ASSERT_THAT(GeneratedArgs, Not(Contains(StrEq("-fsycl-is-host"))));
ASSERT_THAT(GeneratedArgs, Not(Contains(HasSubstr("-sycl-std=2020"))));
``````````
</details>
https://github.com/llvm/llvm-project/pull/120258
More information about the cfe-commits
mailing list