Disable clang-tidy for code-generated RNA files

This needs some extra care, which is probably easier once the initial
pass over integration is done.
This commit is contained in:
Sergey Sharybin 2020-07-03 15:31:23 +02:00
parent c9975088a9
commit ffef562bf7
1 changed files with 10 additions and 0 deletions

View File

@ -151,6 +151,16 @@ endif()
unset(GENSRC_CFLAGS)
# NOTE: Disable clang-tidy because generated files are stored outside of the source,
# so the clang-tidy can not find our .clang-tidy and fall-backs to own set of rules
# which are too noisy for Blender.
#
# In the future clang-tidy would either need to be inlined checks and passed via the
# command line (instead of using .clang-tidy file). Or, maybe, there is a way to
# pass configuration file to the clang-tidy command.
unset(CMAKE_C_CLANG_TIDY)
unset(CMAKE_CXX_CLANG_TIDY)
set(SRC_RNA_INC
../RNA_access.h
../RNA_define.h