HomePhabricator

scripted-diff: Following the C++ Standard rules for identifiers with _.

Description

scripted-diff: Following the C++ Standard rules for identifiers with _.

Summary:

Any identifier starting with two _, or one _ followed by a capital letter is reserved for the compiler and thus must not be used. See: https://stackoverflow.com/a/228797/7130273

-BEGIN VERIFY SCRIPT-
s() { git grep -l "$1" src | xargs sed -i "s/$1/$2/g"; }

s '__pushKV' 'pushKVEnd'
s '_EraseTx' 'EraseTxNoLock'
s '_Other' 'Other'
-END VERIFY SCRIPT-

Backport of core#27822.

Depends on D16294.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D16295

Details

Provenance
FabienAuthored on Jun 5 2024, 20:57
FabienPushed on Jun 6 2024, 10:38
Reviewer
Restricted Project
Differential Revision
D16295: scripted-diff: Following the C++ Standard rules for identifiers with _.
Parents
rABC73b7a5561f53: refactor: rpc: Remove unnecessary uses of ParseNonRFCJSONValue() and rename it
Branches
Unknown
Tags
Unknown