[Bf-blender-cvs] [ffef562bf77] master: Disable clang-tidy for code-generated RNA files

Sergey Sharybin noreply at git.blender.org
Fri Jul 3 15:33:32 CEST 2020


Commit: ffef562bf7792081c252118b22218647170117cf
Author: Sergey Sharybin
Date:   Fri Jul 3 15:31:23 2020 +0200
Branches: master
https://developer.blender.org/rBffef562bf7792081c252118b22218647170117cf

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.

===================================================================

M	source/blender/makesrna/intern/CMakeLists.txt

===================================================================

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



More information about the Bf-blender-cvs mailing list