According to the “Source code organization” section in Developer notes, using namespace
should be avoided. This commit removes all uses of using namespace <xxx>
in all source files, including test and bench related files, as well as the .univalue
library
This PR is being split into multiple PR’s as described below.
bench
and test
(#9281):
0bench/bench.cpp: benchmark
1bench/coin_selection.cpp: std
2test/addrman_tests.cpp: std
3test/bloom_tests.cpp: std
4test/dbwrapper_tests.cpp: std [namespace boost::filesystem mapped to io for brevity]
5test/hash_tests.cpp: std [unused]
6test/key_tests.cpp: std
7test/multisig_tests.cpp: std
8test/net_tests.cpp: std
9test/netbase_tests.cpp: std
10test/pmt_tests.cpp: std [unused]
11test/pow_tests.cpp: std [unused]
12test/rpc_tests.cpp: std
13test/script_P2SH_tests.cpp: std
14test/script_tests.cpp: std
15test/serialize_tests.cpp: std
16test/sigopcount_tests.cpp: std
17test/streams_tests.cpp: std [using boost::assign remains, for +=() operator]
18test/timedata_tests.cpp: std [unused]
19test/transaction_tests.cpp: std
20test/univalue_tests.cpp: std
21test/util_tests.cpp: std [unused]
rpc
and script
(#9476):
0rpc/blockchain.cpp: std
1rpc/client.cpp: std
2rpc/mining.cpp: std
3rpc/misc.cpp: std
4rpc/net.cpp: std
5rpc/protocol.cpp: std
6rpc/rawtransaction.cpp: std
7rpc/server.cpp: RPCServer [unused], std
8script/interpreter.cpp: std
9script/ismine.cpp: std
10script/script.cpp: std
11script/sign.cpp: std
12script/standard.cpp: std
wallet
and util*
(#9643):
0util.cpp: std
1utilmoneystr.cpp: std
2utilstrencodings.cpp: std
3utiltime.cpp: std [unused]
4wallet/db.cpp: std
5wallet/rpcdump.cpp: std
6wallet/rpcwallet.cpp: std
7wallet/test/wallet_tests.cpp: std
8wallet/wallet.cpp: std
9wallet/walletdb.cpp: std
Remaining (#9644):
0bloom.cpp: std
1chain.cpp: std [unused]
2core_read.cpp: std
3core_write.cpp: std
4init.cpp: std, boost::filesystem [inside void CleanupBlockRevFiles()]
5merkleblock.cpp: std
6miner.cpp: std
7net_processing.cpp: std
8rest.cpp: std
9timedata.cpp: std
10txdb.cpp: std
11txmempool.cpp: std
12validation.cpp: std