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
+1 -1
View File
@@ -42,7 +42,7 @@ string solidity::yul::reindent(string const& _code)
{
int constexpr indentationWidth = 4;
auto const static countBraces = [](string const& _s) noexcept -> int
auto constexpr static countBraces = [](string const& _s) noexcept -> int
{
auto const i = _s.find("//");
auto const e = i == _s.npos ? end(_s) : next(begin(_s), static_cast<ptrdiff_t>(i));