Skip to content

Commit 9c96f10

Browse files
committed
tidy: enable modernize-use-nullptr
1 parent e532748 commit 9c96f10

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

ci/test/06_script_a.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if [[ ${USE_MEMORY_SANITIZER} == "true" ]]; then
4949
fi
5050

5151
if [[ "${RUN_TIDY}" == "true" ]]; then
52-
MAYBE_BEAR="bear"
52+
MAYBE_BEAR="bear --config src/.bear-tidy-config"
5353
MAYBE_TOKEN="--"
5454
fi
5555

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1935,6 +1935,7 @@ AC_CONFIG_LINKS([contrib/devtools/test-security-check.py:contrib/devtools/test-s
19351935
AC_CONFIG_LINKS([contrib/devtools/test-symbol-check.py:contrib/devtools/test-symbol-check.py])
19361936
AC_CONFIG_LINKS([contrib/filter-lcov.py:contrib/filter-lcov.py])
19371937
AC_CONFIG_LINKS([contrib/macdeploy/background.tiff:contrib/macdeploy/background.tiff])
1938+
AC_CONFIG_LINKS([src/.bear-tidy-config:src/.bear-tidy-config])
19381939
AC_CONFIG_LINKS([src/.clang-tidy:src/.clang-tidy])
19391940
AC_CONFIG_LINKS([test/functional/test_runner.py:test/functional/test_runner.py])
19401941
AC_CONFIG_LINKS([test/fuzz/test_runner.py:test/fuzz/test_runner.py])

src/.bear-tidy-config

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"output": {
3+
"content": {
4+
"include_only_existing_source": true,
5+
"paths_to_include": [],
6+
"paths_to_exclude": [
7+
"src/leveldb"
8+
]
9+
},
10+
"format": {
11+
"command_as_array": true,
12+
"drop_output_field": false
13+
}
14+
}
15+
}

src/.clang-tidy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Checks: '-*,bugprone-argument-comment'
2-
WarningsAsErrors: bugprone-argument-comment
1+
Checks: '-*,bugprone-argument-comment,modernize-use-nullptr'
2+
WarningsAsErrors: 'bugprone-argument-comment,modernize-use-nullptr'

0 commit comments

Comments
 (0)