doc: relax clang-format loop and template declaration rules

bitcoin/bitcoin: PR #36912

Review failed during the final assessment.

Coverage details