Bitcoin full node and query server

Dec 24, 2018

View in context in the libbitcoin Slack #general mirror.

jungly12:11
You are totally right on watching out for the style. Consistency is important. It's just hard for a newcomer like me who is used to let the machine watch out for my inconsistencies. I am curious to find something that works on my setup (Emacs) and visual studio without too many external dependencies. I like the promise of clang-format, but as you said, it's hard to find something that makes sense for every setup. I'll keep you posted on what I find useful.
jungly14:40
Messed around with clang-format a bit. It won’t conform 100% with the style in libbitcoin. Some rules that we just configure it for are 1. can’t force breaks before inheritance lists, unless they hit 80 col limit 2. it will put a break before the first parameter if call or function declaration exceeds 80 col limit 3. can’t config it to put a new line before lambda expressions Am sure there are some other rules it breaks too. As pros, it has excellent support for VS and emacs. For VS you can format a file explicitly or automatically on save. There is a ClangFormat extension for VS Code since last year.
(edited)