[clang] [llvm] [MC/DC][Coverage] Loosen the limit of NumConds from 6 (PR #82448)

Alan Phipps via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 10 15:36:19 PDT 2024


================
@@ -484,10 +484,31 @@ MC/DC Instrumentation
 ---------------------
 
 When instrumenting for Modified Condition/Decision Coverage (MC/DC) using the
-clang option ``-fcoverage-mcdc``, users are limited to at most **six** leaf-level
-conditions in a boolean expression.  A warning will be generated for boolean
-expressions that contain more than six, and they will not be instrumented for
-MC/DC.
+clang option ``-fcoverage-mcdc``, there are two hard limits.
+
+The maximum number of terms is limited to 32767. It would be practical for
+handwritten expressions. To be more retrictive in order to enfoce conding rules,
----------------
evodius96 wrote:

Nit: "retrictive" --> "restrictive" and "enfoce" --> "enforce"

https://github.com/llvm/llvm-project/pull/82448


More information about the cfe-commits mailing list