[clang] Feat/suppress leak reports (PR #199240)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Tue May 26 09:50:34 PDT 2026
================
@@ -458,6 +459,9 @@ class MallocChecker
StringRef getDebugTag() const override { return "MallocChecker"; }
+public:
+ std::vector<std::string> SuppressLeakTypes;
+
private:
----------------
NagyDonat wrote:
Please disregard this sloppy review comment, the principle of encapsulation (which is in general valid) is not relevant for this concrete case.
The checker objects are singleton instances which are used in an established, very predictable pattern (their data members are set in the the `register` methods and then they are untouched) so there is no reason to introduce complexity for the sake of encapsulation.
https://github.com/llvm/llvm-project/pull/199240
More information about the cfe-commits
mailing list