Warchant
commented at 9:20 pm on August 6, 2020:
none
To reproduce changes:
Install, then find run-clang-tidy.py
0$ find /usr -type f -name run-clang-tidy.py
1/usr/share/clang/run-clang-tidy.py
You need to create compile_commands.json file.
Run autogen, configure, then
0$ compiledb -n make
Run clang-tidy with checks and autofix:
0$ cd src
1$ /usr/share/clang/run-clang-tidy.py -checks='-*,performance-*' -p .. -fix
Performance improvement of this change may be small, but anyway nice to have.
Run clang-tidy -*,performance-*
To reproduce changes:
1. Install, then find run-clang-tidy.py
$ find /usr -type f -name run-clang-tidy.py
/usr/share/clang/run-clang-tidy.py
2. You need to create compile_commands.json file.
Run autogen, configure, then
$ compiledb -n make
3. Run clang-tidy with checks:
$ cd src
$ /usr/share/clang/run-clang-tidy.py -checks='-*,performance-*' -p .. -fix
49fa26e122
Fix false-positives, add NOLINTNEXTLINEef99aafe38
DrahtBot added the label
Mining
on Aug 6, 2020
DrahtBot added the label
P2P
on Aug 6, 2020
DrahtBot added the label
RPC/REST/ZMQ
on Aug 6, 2020
DrahtBot added the label
Tests
on Aug 6, 2020
DrahtBot added the label
Utils/log/libs
on Aug 6, 2020
DrahtBot added the label
UTXO Db and Indexes
on Aug 6, 2020
DrahtBot added the label
Validation
on Aug 6, 2020
DrahtBot added the label
Wallet
on Aug 6, 2020
practicalswift
commented at 9:57 pm on August 6, 2020:
contributor
@Warchant First: welcome as a future contributor! :)
My guess is that a massive automated refactoring like this with many unrelated changes is unlikely to get merged.
If you want to proceed with this type of work I suggest picking a singleclang-tidy fix-it rule that results in a change set that a.) makes sense (ideally: everyone should agree on that the fix-it version is better than status quo version), b.) is trivially correct (ideally: if-it-compiles-it-is-correct), c.) makes the code more in line with what the developer notes suggest, and d.) doesn’t touch too many lines.
Of the changes in your PR I guess the function signature transformation from T f(std::string s) to T f(const std::string& s) is scoring (relatively) highest given these criteria.
And generally: don’t touch dependencies (src/leveldb/ in this case) and try to avoid touching consensus critical code.
Hope that helps! :)
fanquake
commented at 10:01 pm on August 6, 2020:
member
#15367 (feature: Added ability for users to add a startup command by benthecarman)
#14582 (wallet: always do avoid partial spends if fees are within a specified range by kallewoof)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
laanwj
commented at 10:39 am on August 7, 2020:
member
Thanks for your first contribution. However, as @practicalswift already says, we don’t do large-scale all-over-the-place automated refactors like this.
In general, code-style changes should only be done when modifying code in the vicinity. This avoids conflict with every other PR.
Also, this changes the code semantically, so it would be a lot of work to review.
So NACK
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2024-12-21 15:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me