File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -164,16 +164,18 @@ if [ "${RUN_TIDY}" = "true" ]; then
164
164
cmake --build /tidy-build --target bitcoin-tidy-tests " $MAKEJOBS "
165
165
166
166
set -eo pipefail
167
+ # Filter out:
168
+ # * qt qrc and moc generated files
169
+ jq ' map(select(.file | test("src/qt/.*_autogen/.*\\.cpp$") | not))' " ${BASE_BUILD_DIR} /compile_commands.json" > tmp.json
170
+ mv tmp.json " ${BASE_BUILD_DIR} /compile_commands.json"
171
+
167
172
cd " ${BASE_BUILD_DIR} /src/"
168
173
if ! ( run-clang-tidy-" ${TIDY_LLVM_V} " -quiet -load=" /tidy-build/libbitcoin-tidy.so" " ${MAKEJOBS} " | tee tmp.tidy-out.txt ); then
169
174
grep -C5 " error: " tmp.tidy-out.txt
170
175
echo " ^^^ ⚠️ Failure generated from clang-tidy"
171
176
false
172
177
fi
173
- # Filter out:
174
- # * qt qrc and moc generated files
175
- jq ' map(select(.file | test("src/qt/qrc_.*\\.cpp$|/moc_.*\\.cpp$") | not))' " ${BASE_BUILD_DIR} /compile_commands.json" > tmp.json
176
- mv tmp.json " ${BASE_BUILD_DIR} /compile_commands.json"
178
+
177
179
cd " ${BASE_ROOT_DIR} "
178
180
python3 " /include-what-you-use/iwyu_tool.py" \
179
181
-p " ${BASE_BUILD_DIR} " " ${MAKEJOBS} " \
You can’t perform that action at this time.
0 commit comments