diff options
author | Christian <c@ethdev.com> | 2014-10-16 20:08:54 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-10-16 20:08:54 +0800 |
commit | ee06ed2ff8fab08bc31662c298796c50009c2a11 (patch) | |
tree | 874f6ff1604dd45284d6c290cf9166d6221a4479 /solidityParser.cpp | |
parent | c2f3d27940cb36d1991d2464f36f320d9d656577 (diff) | |
download | dexon-solidity-ee06ed2ff8fab08bc31662c298796c50009c2a11.tar.gz dexon-solidity-ee06ed2ff8fab08bc31662c298796c50009c2a11.tar.zst dexon-solidity-ee06ed2ff8fab08bc31662c298796c50009c2a11.zip |
Corrected coding style.
Diffstat (limited to 'solidityParser.cpp')
-rw-r--r-- | solidityParser.cpp | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/solidityParser.cpp b/solidityParser.cpp index b1f27bcb..ef434cc3 100644 --- a/solidityParser.cpp +++ b/solidityParser.cpp @@ -28,16 +28,20 @@ #include <libsolidity/Exceptions.h> #include <boost/test/unit_test.hpp> -namespace dev { -namespace solidity { -namespace test { +namespace dev +{ +namespace solidity +{ +namespace test +{ -namespace { - ptr<ASTNode> parseText(const std::string& _source) - { - Parser parser; - return parser.parse(std::make_shared<Scanner>(CharStream(_source))); - } +namespace +{ +ptr<ASTNode> parseText(const std::string& _source) +{ + Parser parser; + return parser.parse(std::make_shared<Scanner>(CharStream(_source))); +} } BOOST_AUTO_TEST_SUITE(SolidityParser) @@ -211,5 +215,7 @@ BOOST_AUTO_TEST_CASE(else_if_statement) BOOST_AUTO_TEST_SUITE_END() -} } } // end namespaces +} +} +} // end namespaces |