Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2020-07-03 16:31:23 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2020-07-03 16:33:27 +0300
commitffef562bf7792081c252118b22218647170117cf (patch)
tree1a0042fe25eaf251bddef2f94ec0642872c64ade /source/blender/makesrna/intern/CMakeLists.txt
parentc9975088a908d0321271185661309e23e8bc1fb4 (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/blender/makesrna/intern/CMakeLists.txt')
-rw-r--r--source/blender/makesrna/intern/CMakeLists.txt10
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