| Issue |
171623
|
| Summary |
[clang-format] Wrong pointer alignment in case of PointerAlignment: Right
|
| Labels |
clang-format
|
| Assignees |
|
| Reporter |
opntr-bborg
|
Given the attached clang format config file, the the following snippet:
```
diff --git a/src/ops-rtmp.c b/src/ops-rtmp.c
index b74c530..36e7a36 100644
--- a/src/ops-rtmp.c
+++ b/src/ops-rtmp.c
@@ -121,7 +121,7 @@ __overloadable ops_errno_t ops_rtmp_open(ops_rtmp_ctx_t **context, ops_rtmp_sett
ctx->network_layer.type = OPS_RTMP_NETWORK_LAYER_TYPE_TCP;
#ifdef _WIN32
/* Register Windows-specific network functions */
- extern void ops_rtmp_network_win32_register(ops_rtmp_ctx_t *ctx);
+ extern void ops_rtmp_network_win32_register(ops_rtmp_ctx_t * ctx);
ops_rtmp_network_win32_register(ctx);
ops_rtmp_log(ctx, OPS_LOG_DEBUG, "Registered Windows-specific network functions\n");
#endif
```
The original line marked with `-` and the formatted line marked with `+` which I assume wrong / a bug in the clang-format.
```
% clang-format --version
Homebrew clang-format version 19.1.7
```
and the issue can be reproduced with
```
% /opt/homebrew/opt/llvm@21/bin/clang-format --version
Homebrew clang-format version 21.1.2
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs