Merge pull request #11799 from benldrmn/increase_use_of_constexpr

Increase use of C++ constexpr
This commit is contained in:
Harikrishnan Mulackal
2021-08-31 17:23:36 +02:00
committed by GitHub
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,