mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
tidy: enable modernize-use-nullptr
This commit is contained in:
parent
e53274868e
commit
9c96f1008b
4 changed files with 19 additions and 3 deletions
|
@ -49,7 +49,7 @@ if [[ ${USE_MEMORY_SANITIZER} == "true" ]]; then
|
|||
fi
|
||||
|
||||
if [[ "${RUN_TIDY}" == "true" ]]; then
|
||||
MAYBE_BEAR="bear"
|
||||
MAYBE_BEAR="bear --config src/.bear-tidy-config"
|
||||
MAYBE_TOKEN="--"
|
||||
fi
|
||||
|
||||
|
|
|
@ -1935,6 +1935,7 @@ AC_CONFIG_LINKS([contrib/devtools/test-security-check.py:contrib/devtools/test-s
|
|||
AC_CONFIG_LINKS([contrib/devtools/test-symbol-check.py:contrib/devtools/test-symbol-check.py])
|
||||
AC_CONFIG_LINKS([contrib/filter-lcov.py:contrib/filter-lcov.py])
|
||||
AC_CONFIG_LINKS([contrib/macdeploy/background.tiff:contrib/macdeploy/background.tiff])
|
||||
AC_CONFIG_LINKS([src/.bear-tidy-config:src/.bear-tidy-config])
|
||||
AC_CONFIG_LINKS([src/.clang-tidy:src/.clang-tidy])
|
||||
AC_CONFIG_LINKS([test/functional/test_runner.py:test/functional/test_runner.py])
|
||||
AC_CONFIG_LINKS([test/fuzz/test_runner.py:test/fuzz/test_runner.py])
|
||||
|
|
15
src/.bear-tidy-config
Normal file
15
src/.bear-tidy-config
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"output": {
|
||||
"content": {
|
||||
"include_only_existing_source": true,
|
||||
"paths_to_include": [],
|
||||
"paths_to_exclude": [
|
||||
"src/leveldb"
|
||||
]
|
||||
},
|
||||
"format": {
|
||||
"command_as_array": true,
|
||||
"drop_output_field": false
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,2 +1,2 @@
|
|||
Checks: '-*,bugprone-argument-comment'
|
||||
WarningsAsErrors: bugprone-argument-comment
|
||||
Checks: '-*,bugprone-argument-comment,modernize-use-nullptr'
|
||||
WarningsAsErrors: 'bugprone-argument-comment,modernize-use-nullptr'
|
||||
|
|
Loading…
Add table
Reference in a new issue