setup clang tidy (#19533)

* setup clang tidy

* config

* some cleanup

* little more

* remove that

* fix qcom build
old-commit-hash: 87950eb3127e175f0f2b0bb42440f5350c679369
This commit is contained in:
Adeeb Shihadeh
2021-01-05 12:50:23 -08:00
committed by GitHub
parent 4861ec6f81
commit d89bb8b29c
9 changed files with 47 additions and 27 deletions

View File

@@ -21,6 +21,10 @@ AddOption('--clazy',
action='store_true',
help='build with clazy')
AddOption('--compile_db',
action='store_true',
help='build clang compilation database')
real_arch = arch = subprocess.check_output(["uname", "-m"], encoding='utf8').rstrip()
if platform.system() == "Darwin":
arch = "Darwin"
@@ -186,7 +190,7 @@ env = Environment(
tools=["default", "cython", "compilation_db"],
)
if GetOption('test'):
if GetOption('compile_db'):
env.CompilationDatabase('compile_commands.json')
if os.environ.get('SCONS_CACHE'):