Skip to content

Commit d873ff9

Browse files
committed
refactor: cleanups post unsubtree'ing univalue
Mostly changes to remove src/univalue exceptions from the various linters, and the required code changes to make them happy. As well as minor doc changes.
1 parent e2aa704 commit d873ff9

22 files changed

+32
-56
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ src/obj
4444
share/setup.nsi
4545
share/qt/Info.plist
4646

47-
src/univalue/gen
48-
4947
src/qt/*.moc
5048
src/qt/moc_*.cpp
5149
src/qt/forms/ui_*.h

Makefile.am

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ LCOV_FILTER_PATTERN = \
174174
-p "src/leveldb/" \
175175
-p "src/crc32c/" \
176176
-p "src/bench/" \
177-
-p "src/univalue" \
178177
-p "src/crypto/ctaes" \
179178
-p "src/minisketch" \
180179
-p "src/secp256k1" \

ci/lint/06_script.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export COMMIT_RANGE
1818
test/lint/git-subtree-check.sh src/crypto/ctaes
1919
test/lint/git-subtree-check.sh src/secp256k1
2020
test/lint/git-subtree-check.sh src/minisketch
21-
test/lint/git-subtree-check.sh src/univalue
2221
test/lint/git-subtree-check.sh src/leveldb
2322
test/lint/git-subtree-check.sh src/crc32c
2423
test/lint/check-doc.py

contrib/devtools/copyright_header.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"src/leveldb/",
3636
"src/minisketch",
3737
"src/secp256k1/",
38-
"src/univalue/",
3938
"src/crc32c/",
4039
]
4140

doc/developer-notes.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,10 +1158,6 @@ Current subtrees include:
11581158
- src/crypto/ctaes
11591159
- Upstream at https://github.com/bitcoin-core/ctaes ; maintained by Core contributors.
11601160

1161-
- src/univalue
1162-
- Subtree at https://github.com/bitcoin-core/univalue-subtree ; maintained by Core contributors.
1163-
- Deviates from upstream https://github.com/jgarzik/univalue.
1164-
11651161
- src/minisketch
11661162
- Upstream at https://github.com/sipa/minisketch ; maintained by Core contributors.
11671163

src/univalue/include/univalue.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// Distributed under the MIT software license, see the accompanying
44
// file COPYING or https://opensource.org/licenses/mit-license.php.
55

6-
#ifndef __UNIVALUE_H__
7-
#define __UNIVALUE_H__
6+
#ifndef BITCOIN_UNIVALUE_INCLUDE_UNIVALUE_H
7+
#define BITCOIN_UNIVALUE_INCLUDE_UNIVALUE_H
88

99
#include <charconv>
1010
#include <cstdint>
@@ -194,4 +194,4 @@ extern const UniValue NullUniValue;
194194

195195
const UniValue& find_value( const UniValue& obj, const std::string& name);
196196

197-
#endif // __UNIVALUE_H__
197+
#endif // BITCOIN_UNIVALUE_INCLUDE_UNIVALUE_H

src/univalue/lib/univalue_escapes.h renamed to src/univalue/include/univalue_escapes.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
// Automatically generated file. Do not modify.
2-
#ifndef BITCOIN_UNIVALUE_UNIVALUE_ESCAPES_H
3-
#define BITCOIN_UNIVALUE_UNIVALUE_ESCAPES_H
1+
#ifndef BITCOIN_UNIVALUE_INCLUDE_UNIVALUE_ESCAPES_H
2+
#define BITCOIN_UNIVALUE_INCLUDE_UNIVALUE_ESCAPES_H
43
static const char *escapes[256] = {
54
"\\u0000",
65
"\\u0001",
@@ -259,4 +258,4 @@ static const char *escapes[256] = {
259258
nullptr,
260259
nullptr,
261260
};
262-
#endif // BITCOIN_UNIVALUE_UNIVALUE_ESCAPES_H
261+
#endif // BITCOIN_UNIVALUE_INCLUDE_UNIVALUE_ESCAPES_H

src/univalue/lib/univalue_utffilter.h renamed to src/univalue/include/univalue_utffilter.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright 2016 Wladimir J. van der Laan
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or https://opensource.org/licenses/mit-license.php.
4-
#ifndef UNIVALUE_UTFFILTER_H
5-
#define UNIVALUE_UTFFILTER_H
4+
#ifndef BITCOIN_UNIVALUE_INCLUDE_UNIVALUE_UTFFILTER_H
5+
#define BITCOIN_UNIVALUE_INCLUDE_UNIVALUE_UTFFILTER_H
66

77
#include <string>
88

@@ -116,4 +116,4 @@ class JSONUTF8StringFilter
116116
}
117117
};
118118

119-
#endif
119+
#endif // BITCOIN_UNIVALUE_INCLUDE_UNIVALUE_UTFFILTER_H

src/univalue/lib/univalue_read.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// file COPYING or https://opensource.org/licenses/mit-license.php.
44

55
#include <univalue.h>
6-
#include "univalue_utffilter.h"
6+
#include <univalue_utffilter.h>
77

88
#include <cstdio>
99
#include <cstdint>

src/univalue/lib/univalue_write.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// file COPYING or https://opensource.org/licenses/mit-license.php.
44

55
#include <univalue.h>
6-
#include "univalue_escapes.h"
6+
#include <univalue_escapes.h>
77

88
#include <memory>
99
#include <string>

0 commit comments

Comments
 (0)