scripted-diff: Use clang-tidy syntax for C++ named arguments#23545
scripted-diff: Use clang-tidy syntax for C++ named arguments#23545maflcko wants to merge 2 commits intobitcoin:masterfrom
Conversation
|
Let's see how many conflicts this has 😅 |
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
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. |
|
Concept ACK. |
0018aff to
4a76579
Compare
4a76579 to
483fe29
Compare
483fe29 to
ca4d48f
Compare
Pretty sure those are bugs in current master and have nothing to do with this pull? Maybe create a separate issues or pull to fix those? |
ca4d48f to
6cf7512
Compare
|
🐙 This pull request conflicts with the target branch and needs rebase. Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a "draft". |
6cf7512 to
f5a7fa0
Compare
-BEGIN VERIFY SCRIPT-
sed -i --regexp-extended -e 's_(\(|\{|, ?)\/\* ?([^=* ]+) ?\*\/ ?_\1/*\2=*/_g' $( git grep -l --extended-regexp ', ?\/\* ?[^=* ]+ ?\*\/' ./src )
# perl -0777 -pi -e 's:((\(|\{|,)(\n| )*)\/\* ?([^=* ]+) ?\*\/ ?:\1/*\4=*/:g' $( git ls-files ./src/ )
-END VERIFY SCRIPT-
f5a7fa0 to
63971b4
Compare
|
Closing as up for grabs |
Picked up in #24661. |
…guments 37a16ff refactor: fix clang-tidy named args usage (fanquake) Pull request description: > Incorrect named args are source of bugs, like bitcoin#22979. > To allow them being checked by clang-tidy, use a format it can understand. Picks up bitcoin#23545, with some additional changes and some feedback addressed. With these changes invoking `./autogen.sh && ./configure CC=clang-12 CXX=clang++-12 && make clean && bear make -j9 && ( cd ./src/ && run-clang-tidy-12 -j9 )` no-longer results in named argument errors out of `clang-tidy`. Ultimately I think we should just add `clang-tidy-*` jobs to the CI and automate things away. ACKs for top commit: MarcoFalke: cr ACK 37a16ff Tree-SHA512: 9bfc0d006eb187755b4fdb0bd92cee9266fc0816be42065ef7dcd885b9020ff12e3cdd7ca3a831613a56a0206d448e690ee4e1fa37628fa2013860e17f416ff3
Incorrect named args are source of bugs, like #22979.
To allow them being checked by
clang-tidy, use a format it can understand.