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 /solidityNameAndTypeResolution.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 'solidityNameAndTypeResolution.cpp')
-rw-r--r-- | solidityNameAndTypeResolution.cpp | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/solidityNameAndTypeResolution.cpp b/solidityNameAndTypeResolution.cpp index d2f99e83..ed2cb7b5 100644 --- a/solidityNameAndTypeResolution.cpp +++ b/solidityNameAndTypeResolution.cpp @@ -29,19 +29,23 @@ #include <libsolidity/Exceptions.h> #include <boost/test/unit_test.hpp> -namespace dev { -namespace solidity { -namespace test { +namespace dev +{ +namespace solidity +{ +namespace test +{ -namespace { - void parseTextAndResolveNames(const std::string& _source) - { - Parser parser; - ptr<ContractDefinition> contract = parser.parse( - std::make_shared<Scanner>(CharStream(_source))); - NameAndTypeResolver resolver; - resolver.resolveNamesAndTypes(*contract); - } +namespace +{ +void parseTextAndResolveNames(const std::string& _source) +{ + Parser parser; + ptr<ContractDefinition> contract = parser.parse( + std::make_shared<Scanner>(CharStream(_source))); + NameAndTypeResolver resolver; + resolver.resolveNamesAndTypes(*contract); +} } BOOST_AUTO_TEST_SUITE(SolidityNameAndTypeResolution) @@ -168,5 +172,7 @@ BOOST_AUTO_TEST_CASE(type_inference_explicit_conversion) BOOST_AUTO_TEST_SUITE_END() -} } } // end namespaces +} +} +} // end namespaces |