[Bf-blender-cvs] [dd2df5ceb0b] master: Fix: Comments in clang-tidy checks list is not allowed

Sebastian Parborg noreply at git.blender.org
Fri May 6 15:27:01 CEST 2022


Commit: dd2df5ceb0bfe5db7d6ee2c4865310672d7d9c9c
Author: Sebastian Parborg
Date:   Fri May 6 14:41:58 2022 +0200
Branches: master
https://developer.blender.org/rBdd2df5ceb0bfe5db7d6ee2c4865310672d7d9c9c

Fix: Comments in clang-tidy checks list is not allowed

Clang-tidy will not parse any options after the comment.

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

M	.clang-tidy

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

diff --git a/.clang-tidy b/.clang-tidy
index 1cc0e6e7f4a..bbd51291918 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -1,6 +1,8 @@
 # The warnings below are disabled because they are too pedantic and not worth fixing.
 # Some of them will be enabled as part of the Clang-Tidy task, see T78535.
 
+# NOTE: No comments in the list below is allowed. Clang-tidy will ignore items after comments in the lists flag list.
+# This is because the comment is not a valid list item and it will stop parsing flags if a list item is a comment.
 Checks:  >
   -*,
   readability-*,
@@ -42,8 +44,6 @@ Checks:  >
   -modernize-use-nodiscard,
   -modernize-loop-convert,
   -modernize-pass-by-value,
-  # Cannot be enabled yet, because using raw string literals in tests breaks
-  # the windows compiler currently.
   -modernize-raw-string-literal,
   -modernize-return-braced-init-list



More information about the Bf-blender-cvs mailing list