Page MenuHomePhabricator

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

Authored by Fabien on Jun 5 2024, 21:08.

Details

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