From 8d66eecf4707f02f4ca0d73723581b746d964c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 17 Jun 2018 08:16:37 +0200 Subject: [PATCH] Renamed _suppressions to mSuppressions --- lib/suppressions.cpp | 12 ++++++------ lib/suppressions.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/suppressions.cpp b/lib/suppressions.cpp index a124417e2..985b69acc 100644 --- a/lib/suppressions.cpp +++ b/lib/suppressions.cpp @@ -169,7 +169,7 @@ std::string Suppressions::addSuppression(const Suppressions::Suppression &suppre if (!isValidGlobPattern(suppression.fileName)) return "Failed to add suppression. Invalid glob pattern '" + suppression.fileName + "'."; - _suppressions.push_back(suppression); + mSuppressions.push_back(suppression); return ""; } @@ -269,7 +269,7 @@ std::string Suppressions::Suppression::getText() const bool Suppressions::isSuppressed(const Suppressions::ErrorMessage &errmsg) { const bool unmatchedSuppression(errmsg.errorId == "unmatchedSuppression"); - for (std::list::iterator it = _suppressions.begin(); it != _suppressions.end(); ++it) { + for (std::list::iterator it = mSuppressions.begin(); it != mSuppressions.end(); ++it) { Suppression &s = *it; if (unmatchedSuppression && s.errorId != errmsg.errorId) continue; @@ -282,7 +282,7 @@ bool Suppressions::isSuppressed(const Suppressions::ErrorMessage &errmsg) bool Suppressions::isSuppressedLocal(const Suppressions::ErrorMessage &errmsg) { const bool unmatchedSuppression(errmsg.errorId == "unmatchedSuppression"); - for (std::list::iterator it = _suppressions.begin(); it != _suppressions.end(); ++it) { + for (std::list::iterator it = mSuppressions.begin(); it != mSuppressions.end(); ++it) { Suppression &s = *it; if (!s.isLocal()) continue; @@ -297,7 +297,7 @@ bool Suppressions::isSuppressedLocal(const Suppressions::ErrorMessage &errmsg) void Suppressions::dump(std::ostream & out) { out << " " << std::endl; - for (const Suppression &suppression : _suppressions) { + for (const Suppression &suppression : mSuppressions) { out << " Suppressions::getUnmatchedLocalSuppressions(const std::string &file, const bool unusedFunctionChecking) const { std::list result; - for (std::list::const_iterator it = _suppressions.begin(); it != _suppressions.end(); ++it) { + for (std::list::const_iterator it = mSuppressions.begin(); it != mSuppressions.end(); ++it) { const Suppression &s = *it; if (s.matched) continue; @@ -332,7 +332,7 @@ std::list Suppressions::getUnmatchedLocalSuppressions std::list Suppressions::getUnmatchedGlobalSuppressions(const bool unusedFunctionChecking) const { std::list result; - for (std::list::const_iterator it = _suppressions.begin(); it != _suppressions.end(); ++it) { + for (std::list::const_iterator it = mSuppressions.begin(); it != mSuppressions.end(); ++it) { const Suppression &s = *it; if (s.matched) continue; diff --git a/lib/suppressions.h b/lib/suppressions.h index c66472325..132de9d6e 100644 --- a/lib/suppressions.h +++ b/lib/suppressions.h @@ -165,7 +165,7 @@ public: static bool matchglob(const std::string &pattern, const std::string &name); private: /** @brief List of error which the user doesn't want to see. */ - std::list _suppressions; + std::list mSuppressions; }; /// @}