Fix .clang-format - removed invalid '---'; added 'DerivePointerAlignment: true'
What changed, and why it matters
This commit only changes a code-formatting configuration file (.clang-format). It removes an invalid separator and adds a setting that lets clang-format automatically guess where asterisks should go in pointer declarations. It does not change any executable code, cryptographic logic, or security behavior of the Bitcoin app.
No security action needed. Treat as a normal repository maintenance/formatting cleanup commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch edits .clang-format: it deletes a stray ‘—’ YAML document separator that was placed between global settings and the Language: Cpp block, and adds DerivePointerAlignment: true. This is purely a formatting/style tooling fix with no functional or security impact on the compiled application.
Changed components
.clang-formatInspect captured patch +1 / −1
diff --git a/.clang-format b/.clang-format
index c76e9fc..1767450 100644
--- a/.clang-format
+++ b/.clang-format
@@ -1,10 +1,10 @@
---
BasedOnStyle: Google
IndentWidth: 4
----
Language: Cpp
ColumnLimit: 100
PointerAlignment: Right
+DerivePointerAlignment: true
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: true
AllowAllParametersOfDeclarationOnNextLine: false
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.