================
@@ -906,17 +906,28 @@ class ReturnVisitor : public TrackingBugReporterVisitor {
     Satisfied
   } Mode = Initial;
 
-  bool EnableNullFPSuppression;
+  /// Whether the null value returned by the callee suppresses the report
+  /// (suppress-null-return-paths).
+  bool NullReturnSuppressesReport;
+  /// Whether tracking the returned expression may still apply the caller's
----------------
benedekaibas wrote:

```suggestion
/// Whether tracking the returned expression may still apply the caller's
/// false-positive suppression (inlined defensive checks, macro null
/// returns). Unlike NullReturnSuppressesReport, this one is handed to the
/// nested tracking instead of deciding the fate of this report.
```

Even though I agree we should keep comments short and clear, I think in this 
case explicitly writing the variable's name instead of "flag above" is better. 
If someone inserts a new variable here and forgets to update this comment then 
the comment will be misleading.

https://github.com/llvm/llvm-project/pull/237901
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to