diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-07-03 16:31:23 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-07-03 16:33:27 +0300 |
commit | ffef562bf7792081c252118b22218647170117cf (patch) | |
tree | 1a0042fe25eaf251bddef2f94ec0642872c64ade /source | |
parent | c9975088a908d0321271185661309e23e8bc1fb4 (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesrna/intern/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/CMakeLists.txt b/source/blender/makesrna/intern/CMakeLists.txt index 980e3eadd34..9c2ee00a900 100644 --- a/source/blender/makesrna/intern/CMakeLists.txt +++ b/source/blender/makesrna/intern/CMakeLists.txt @@ -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 |