Increase use of C++ constexpr constant expressions in code base as described in issue #7720

This commit is contained in:
benldrmn
2021-08-31 15:03:59 +02:00
committed by Marenz
parent 13691dfbaa
commit 58e4cc62e0
6 changed files with 8 additions and 8 deletions
+2 -1
View File
@@ -34,6 +34,7 @@
#include <boost/algorithm/string.hpp>
#include <regex>
#include <string_view>
using namespace std;
using namespace solidity;
@@ -233,7 +234,7 @@ void DocStringTagParser::parseDocStrings(
for (auto const& [tagName, tagValue]: _annotation.docTags)
{
string static const customPrefix("custom:");
string_view static constexpr customPrefix("custom:");
if (tagName == "custom" || tagName == "custom:")
m_errorReporter.docstringParsingError(
6564_error,