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 h --
clang/lib/Headers/ptrauth.h
``````````
: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/Headers/ptrauth.h b/clang/lib/Headers/ptrauth.h
index 1544456e1..ca9ac5a55 100644
--- a/clang/lib/Headers/ptrauth.h
+++ b/clang/lib/Headers/ptrauth.h
@@ -209,12 +209,14 @@ typedef __UINTPTR_TYPE__ ptrauth_generic_signature_t;
The result has an identical bit-pattern to the input pointer. */
#define ptrauth_nop_cast(__type, __value)
\
- ({ union {
\
+ ({
\
+ union {
\
typeof(*(__value)) *__fptr;
\
typeof(__type) __opaque;
\
- } __storage;
\
- __storage.__fptr = (__value);
\
- __storage.__opaque; })
+ } __storage;
\
+ __storage.__fptr = (__value);
\
+ __storage.__opaque;
\
+ })
/* Authenticate a data pointer.
@@ -295,8 +297,7 @@ typedef __UINTPTR_TYPE__ ptrauth_generic_signature_t;
/* Define some standard __ptrauth qualifiers used in the ABI. */
#define __ptrauth_function_pointer(__typekey)
\
__ptrauth(ptrauth_key_function_pointer, 0, __typekey)
-#define __ptrauth_return_address
\
- __ptrauth(ptrauth_key_return_address, 1, 0)
+#define __ptrauth_return_address __ptrauth(ptrauth_key_return_address, 1, 0)
#define __ptrauth_block_invocation_pointer
\
__ptrauth(ptrauth_key_function_pointer, 1, 0)
#define __ptrauth_block_copy_helper
\
``````````
</details>
https://github.com/llvm/llvm-project/pull/161027
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits