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,h --
clang/test/OpenMP/need_device_ptr_modifier_ast_print.cpp
clang/test/OpenMP/need_device_ptr_modifier_messages.cpp
clang/include/clang/Basic/OpenMPKinds.h clang/include/clang/Sema/SemaOpenMP.h
clang/lib/Parse/ParseOpenMP.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/Parse/ParseOpenMP.cpp b/clang/lib/Parse/ParseOpenMP.cpp
index f3abd5c34..141f39d52 100644
--- a/clang/lib/Parse/ParseOpenMP.cpp
+++ b/clang/lib/Parse/ParseOpenMP.cpp
@@ -5019,9 +5019,9 @@ bool Parser::ParseOpenMPVarList(OpenMPDirectiveKind DKind,
if (Tok.is(tok::identifier)) {
std::string Modifier = PP.getSpelling(Tok);
if (Modifier == "fb_nullify" || Modifier == "fb_preserve") {
- Data.NeedDevicePtrModifier = Modifier == "fb_nullify"
- ?
OMPC_NEED_DEVICE_PTR_fb_nullify
- :
OMPC_NEED_DEVICE_PTR_fb_preserve;
+ Data.NeedDevicePtrModifier =
+ Modifier == "fb_nullify" ? OMPC_NEED_DEVICE_PTR_fb_nullify
+ : OMPC_NEED_DEVICE_PTR_fb_preserve;
} else {
Diag(Tok, diag::err_omp_unknown_need_device_ptr_modifier);
SkipUntil(tok::r_paren, tok::annot_pragma_openmp_end,
``````````
</details>
https://github.com/llvm/llvm-project/pull/168905
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits