Include cleanup.

This commit is contained in:
chriseth 2019-03-28 13:07:52 +01:00
parent 20ae3ad555
commit f2cee9ec0c
18 changed files with 37 additions and 36 deletions

View File

@ -24,7 +24,7 @@
#pragma once #pragma once
#include "Exceptions.h" #include <libdevcore/Exceptions.h>
namespace dev namespace dev
{ {

View File

@ -19,7 +19,11 @@
* @date 2014 * @date 2014
*/ */
#include "CommonIO.h" #include <libdevcore/CommonIO.h>
#include <libdevcore/Assertions.h>
#include <boost/filesystem.hpp>
#include <iostream> #include <iostream>
#include <cstdlib> #include <cstdlib>
#include <fstream> #include <fstream>
@ -29,8 +33,6 @@
#include <unistd.h> #include <unistd.h>
#include <termios.h> #include <termios.h>
#endif #endif
#include <boost/filesystem.hpp>
#include "Assertions.h"
using namespace std; using namespace std;
using namespace dev; using namespace dev;

View File

@ -23,10 +23,10 @@
#pragma once #pragma once
#include <libdevcore/Common.h>
#include <boost/filesystem.hpp>
#include <sstream> #include <sstream>
#include <string> #include <string>
#include <boost/filesystem.hpp>
#include "Common.h"
namespace dev namespace dev
{ {

View File

@ -19,9 +19,9 @@
* @date 2018 * @date 2018
*/ */
#include "JSON.h" #include <libdevcore/JSON.h>
#include "CommonIO.h" #include <libdevcore/CommonIO.h>
#include <sstream> #include <sstream>
#include <map> #include <map>

View File

@ -21,7 +21,7 @@
* String routines * String routines
*/ */
#include "StringUtils.h" #include <libdevcore/StringUtils.h>
#include <algorithm> #include <algorithm>
#include <string> #include <string>
#include <vector> #include <vector>

View File

@ -21,12 +21,10 @@
* UTF-8 related helpers * UTF-8 related helpers
*/ */
#include "UTF8.h" #include <libdevcore/UTF8.h>
namespace dev namespace dev
{ {
namespace namespace
{ {
@ -77,6 +75,8 @@ bool isWellFormed(unsigned char byte1, unsigned char byte2)
return false; return false;
} }
}
bool validateUTF8(unsigned char const* _input, size_t _length, size_t& _invalidPosition) bool validateUTF8(unsigned char const* _input, size_t _length, size_t& _invalidPosition)
{ {
bool valid = true; bool valid = true;
@ -133,8 +133,6 @@ bool validateUTF8(unsigned char const* _input, size_t _length, size_t& _invalidP
return false; return false;
} }
}
bool validateUTF8(std::string const& _input, size_t& _invalidPosition) bool validateUTF8(std::string const& _input, size_t& _invalidPosition)
{ {
return validateUTF8(reinterpret_cast<unsigned char const*>(_input.c_str()), _input.length(), _invalidPosition); return validateUTF8(reinterpret_cast<unsigned char const*>(_input.c_str()), _input.length(), _invalidPosition);

View File

@ -19,7 +19,7 @@
* @date 2014 * @date 2014
*/ */
#include "Assembly.h" #include <libevmasm/Assembly.h>
#include <libevmasm/CommonSubexpressionEliminator.h> #include <libevmasm/CommonSubexpressionEliminator.h>
#include <libevmasm/ControlFlowGraph.h> #include <libevmasm/ControlFlowGraph.h>

View File

@ -19,7 +19,7 @@
* Removes unused JUMPDESTs. * Removes unused JUMPDESTs.
*/ */
#include "JumpdestRemover.h" #include <libevmasm/JumpdestRemover.h>
#include <libevmasm/AssemblyItem.h> #include <libevmasm/AssemblyItem.h>

View File

@ -21,10 +21,11 @@
* Contains knowledge about the state of the virtual machine at a specific instruction. * Contains knowledge about the state of the virtual machine at a specific instruction.
*/ */
#include "KnownState.h" #include <libevmasm/KnownState.h>
#include <functional>
#include <libdevcore/Keccak256.h>
#include <libevmasm/AssemblyItem.h> #include <libevmasm/AssemblyItem.h>
#include <libdevcore/Keccak256.h>
#include <functional>
using namespace std; using namespace std;
using namespace dev; using namespace dev;

View File

@ -19,7 +19,7 @@
* @date 2015 * @date 2015
*/ */
#include "PathGasMeter.h" #include <libevmasm/PathGasMeter.h>
#include <libevmasm/KnownState.h> #include <libevmasm/KnownState.h>
#include <libevmasm/SemanticInformation.h> #include <libevmasm/SemanticInformation.h>

View File

@ -19,7 +19,7 @@
* Performs local optimising code changes to assembly. * Performs local optimising code changes to assembly.
*/ */
#include "PeepholeOptimiser.h" #include <libevmasm/PeepholeOptimiser.h>
#include <libevmasm/AssemblyItem.h> #include <libevmasm/AssemblyItem.h>
#include <libevmasm/SemanticInformation.h> #include <libevmasm/SemanticInformation.h>

View File

@ -19,7 +19,11 @@
* @date 2014 * @date 2014
*/ */
#include "CodeFragment.h" #include <liblll/CodeFragment.h>
#include <liblll/CompilerState.h>
#include <liblll/Parser.h>
#include <libevmasm/Instruction.h>
#include <libdevcore/CommonIO.h>
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>
@ -34,10 +38,6 @@
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif // defined(__GNUC__) #endif // defined(__GNUC__)
#include <libdevcore/CommonIO.h>
#include <libevmasm/Instruction.h>
#include "CompilerState.h"
#include "Parser.h"
using namespace std; using namespace std;
using namespace dev; using namespace dev;

View File

@ -21,10 +21,10 @@
#pragma once #pragma once
#include <libdevcore/Common.h> #include <liblll/Exceptions.h>
#include <libevmasm/Instruction.h> #include <libevmasm/Instruction.h>
#include <libevmasm/Assembly.h> #include <libevmasm/Assembly.h>
#include "Exceptions.h" #include <libdevcore/Common.h>
namespace boost { namespace spirit { class utree; } } namespace boost { namespace spirit { class utree; } }
namespace sp = boost::spirit; namespace sp = boost::spirit;

View File

@ -19,8 +19,8 @@
* @date 2014 * @date 2014
*/ */
#include "CompilerState.h" #include <liblll/CompilerState.h>
#include "CodeFragment.h" #include <liblll/CodeFragment.h>
using namespace std; using namespace std;
using namespace dev; using namespace dev;

View File

@ -21,8 +21,8 @@
#pragma once #pragma once
#include <liblll/CodeFragment.h>
#include <boost/spirit/include/support_utree.hpp> #include <boost/spirit/include/support_utree.hpp>
#include "CodeFragment.h"
namespace dev namespace dev
{ {

View File

@ -19,7 +19,7 @@
* @date 2014 * @date 2014
*/ */
#include "Parser.h" #include <liblll/Parser.h>
#if _MSC_VER #if _MSC_VER
#pragma warning(disable:4348) #pragma warning(disable:4348)

View File

@ -21,10 +21,10 @@
#pragma once #pragma once
#include <liblll/Exceptions.h>
#include <libdevcore/Common.h>
#include <string> #include <string>
#include <vector> #include <vector>
#include <libdevcore/Common.h>
#include "Exceptions.h"
namespace boost { namespace spirit { class utree; } } namespace boost { namespace spirit { class utree; } }
namespace sp = boost::spirit; namespace sp = boost::spirit;

View File

@ -20,10 +20,10 @@
* Solidity commandline compiler. * Solidity commandline compiler.
*/ */
#include "CommandLineInterface.h" #include <solc/CommandLineInterface.h>
#include <boost/exception/all.hpp>
#include <clocale> #include <clocale>
#include <iostream> #include <iostream>
#include <boost/exception/all.hpp>
using namespace std; using namespace std;