build Qt UI with clazy (#19537)

* clazy, level0

* level1
old-commit-hash: 069189fd7fd9dc677b29725f92fd3b4b80911d8a
This commit is contained in:
Adeeb Shihadeh
2020-12-18 19:26:59 -08:00
committed by GitHub
parent 99b06dd837
commit 6371eda194
6 changed files with 28 additions and 14 deletions
+11
View File
@@ -44,6 +44,17 @@ if arch in ["x86_64", "Darwin", "larch64"]:
qt_env['CXXFLAGS'] += qt_flags
qt_env['LIBPATH'] += ['#selfdrive/ui']
if GetOption("clazy"):
checks = [
"level0",
"level1",
"no-range-loop",
"no-non-pod-global-static",
]
qt_env['CXX'] = 'clazy'
qt_env['ENV']['CLAZY_IGNORE_DIRS'] = qt_dirs[0]
qt_env['ENV']['CLAZY_CHECKS'] = ','.join(checks)
src = ['ui.cc', 'paint.cc', 'sidebar.cc', '#phonelibs/nanovg/nanovg.c']
libs = [common, 'zmq', 'capnp', 'kj', 'm', cereal, messaging, gpucommon, visionipc]