Fix namespace styles.

This commit is contained in:
chriseth 2021-05-27 17:41:04 +02:00
parent 033559206c
commit d305c219d8
9 changed files with 18 additions and 9 deletions

View File

@ -62,7 +62,8 @@
using namespace std;
namespace solidity::langutil {
namespace solidity::langutil
{
string to_string(ScannerError _errorCode)
{

View File

@ -26,7 +26,8 @@
#include <array>
#include <memory>
namespace solidity::frontend {
namespace solidity::frontend
{
/** Helper class that builds the control flow of a function or modifier.
* Modifiers are not yet applied to the functions. This is done in a second

View File

@ -31,7 +31,8 @@
#include <functional>
#include <ostream>
namespace solidity::frontend {
namespace solidity::frontend
{
class Compiler
{

View File

@ -47,7 +47,8 @@
#include <queue>
#include <utility>
namespace solidity::frontend {
namespace solidity::frontend
{
class Compiler;

View File

@ -29,7 +29,8 @@
#include <libsolidity/codegen/CompilerContext.h>
#include <libsolidity/codegen/CompilerContext.h>
namespace solidity::frontend {
namespace solidity::frontend
{
class Type; // forward

View File

@ -39,7 +39,8 @@ namespace solidity::evmasm
class AssemblyItem; // forward
}
namespace solidity::frontend {
namespace solidity::frontend
{
// forward declarations
class CompilerContext;

View File

@ -27,7 +27,8 @@
#include <string>
namespace solidity::util {
namespace solidity::util
{
/// Removes members with null value recursively from (@a _json).
Json::Value removeNullMembers(Json::Value _json);

View File

@ -40,7 +40,8 @@ using namespace solidity::util;
using namespace solidity::langutil;
using namespace solidity::yul;
namespace {
namespace
{
[[nodiscard]]
shared_ptr<DebugData const> updateLocationEndFrom(

View File

@ -28,7 +28,8 @@ using namespace solidity::yul;
using OptionalStatements = std::optional<vector<Statement>>;
namespace {
namespace
{
OptionalStatements replaceConstArgSwitch(Switch& _switchStmt, u256 const& _constExprVal)
{