Skip to content

Commit 7bcca81

Browse files
committed
const
1 parent dcaff4f commit 7bcca81

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/suppressions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ polyspace::CommentKind polyspace::Parser::parseKind(const std::string& comment,
731731
}
732732

733733

734-
std::list<SuppressionList::Suppression> polyspace::Parser::parse(const std::string &comment, int line, const std::string &filename)
734+
std::list<SuppressionList::Suppression> polyspace::Parser::parse(const std::string &comment, int line, const std::string &filename) const
735735
{
736736
// Syntax for a polyspace suppression:
737737
// https://se.mathworks.com/help/bugfinder/ug/annotate-hide-known-acceptable-polyspace-results-web-browser.html

lib/suppressions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ namespace polyspace {
308308
Parser() = delete;
309309
explicit Parser(const Settings &settings);
310310

311-
std::list<SuppressionList::Suppression> parse(const std::string &comment, int line, const std::string &filename);
311+
std::list<SuppressionList::Suppression> parse(const std::string &comment, int line, const std::string &filename) const;
312312

313313
static int parseRange(const std::string& comment, std::string::size_type& pos);
314314
static std::vector<std::pair<std::string, std::string>> parseFamilyRules(const std::string& comment, std::string::size_type& pos);

0 commit comments

Comments
 (0)