Skip to content

Commit

Permalink
satisfy clang
Browse files Browse the repository at this point in the history
  • Loading branch information
clonker committed Jul 4, 2024
1 parent 03685dd commit 2359805
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libsolidity/ast/AST.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
namespace solidity::yul
{
// Forward-declaration to <yul/AST.h>
struct AST;
class AST;
class YulNameRepository;
}

Expand Down
4 changes: 2 additions & 2 deletions libsolidity/codegen/CompilerContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,10 @@ void CompilerContext::appendInlineAssembly(
auto nameRepository = std::make_unique<yul::YulNameRepository>(dialect);

std::vector<yul::YulName> externallyUsedFunctionNames = _externallyUsedFunctions
| ranges::view::transform([&nameRepository](auto const& label) { return nameRepository->defineName(label); })
| ranges::views::transform([&nameRepository](auto const& label) { return nameRepository->defineName(label); })
| ranges::to_vector;
std::vector<yul::YulName> localVariableNames = _localVariables
| ranges::view::transform([&nameRepository](auto const& label) { return nameRepository->defineName(label); })
| ranges::views::transform([&nameRepository](auto const& label) { return nameRepository->defineName(label); })
| ranges::to_vector;
std::set<yul::YulName> externallyUsedIdentifiers;
externallyUsedIdentifiers += externallyUsedFunctionNames + localVariableNames;
Expand Down
2 changes: 1 addition & 1 deletion test/libyul/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ namespace solidity::yul
{
struct AsmAnalysisInfo;
struct Block;
struct AST;
struct Object;
struct Dialect;
class AST;
class YulStack;
class YulNameRepository;
}
Expand Down
2 changes: 1 addition & 1 deletion test/libyul/StackLayoutGeneratorTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

namespace solidity::yul
{
class Dialect;
struct Dialect;

namespace test
{
Expand Down
2 changes: 1 addition & 1 deletion test/libyul/YulInterpreterTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
namespace solidity::yul
{
struct AsmAnalysisInfo;
struct AST;
class AST;
class YulNameRepository;
}

Expand Down

0 comments on commit 2359805

Please sign in to comment.