File indexing completed on 2024-05-05 05:44:15

0001 /*
0002     SPDX-FileCopyrightText: 2021 Milian Wolff <mail@milianw.de>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-or-later
0005 */
0006 
0007 #ifndef SUPPRESSIONS_H
0008 #define SUPPRESSIONS_H
0009 
0010 #include <string>
0011 #include <vector>
0012 
0013 std::string parseSuppression(std::string line);
0014 std::vector<std::string> parseSuppressions(const std::string& suppressionFile, bool* ok);
0015 bool matchesSuppression(const std::string& suppression, const std::string& haystack);
0016 
0017 struct Suppression
0018 {
0019     std::string pattern;
0020     int64_t matches = 0;
0021     int64_t leaked = 0;
0022 };
0023 
0024 std::vector<Suppression> builtinSuppressions();
0025 
0026 #endif // SUPPRESSIONS_H