[clang] [Coverage] Rework !SystemHeadersCoverage (PR #91446)

NAKAMURA Takumi via cfe-commits cfe-commits at lists.llvm.org
Sun May 19 22:32:53 PDT 2024


================
@@ -2064,7 +2082,20 @@ struct CounterCoverageMappingBuilder
     createDecisionRegion(E, DecisionParams);
   }
 
+  /// Check if E belongs to system headers.
+  bool isExprInSystemHeader(const BinaryOperator *E) const {
----------------
chapuni wrote:

I assume each visitor (`visitBinLAnd` `visitBinLOr`) will not receive nullptr.

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


More information about the cfe-commits mailing list