File tree 20 files changed +70
-38
lines changed
20 files changed +70
-38
lines changed Original file line number Diff line number Diff line change 29
29
30
30
#include < libsolutil/CommonData.h>
31
31
32
- #include < boost/noncopyable.hpp>
33
-
34
32
#include < functional>
35
33
#include < vector>
36
34
@@ -47,9 +45,13 @@ class Pattern;
47
45
/* *
48
46
* Container for all simplification rules.
49
47
*/
50
- class Rules : public boost ::noncopyable
48
+ class Rules
51
49
{
52
50
public:
51
+ // / Noncopyable.
52
+ Rules (Rules const &) = delete ;
53
+ Rules& operator =(Rules const &) = delete ;
54
+
53
55
using Expression = ExpressionClasses::Expression;
54
56
55
57
Rules ();
Original file line number Diff line number Diff line change 19
19
#pragma once
20
20
21
21
#include < libsmtutil/SolverInterface.h>
22
- #include < boost/noncopyable.hpp>
23
22
24
23
#if defined(__GLIBC__)
25
24
// The CVC4 headers includes the deprecated system headers <ext/hash_map>
37
36
namespace solidity ::smtutil
38
37
{
39
38
40
- class CVC4Interface : public SolverInterface , public boost ::noncopyable
39
+ class CVC4Interface : public SolverInterface
41
40
{
42
41
public:
42
+ // / Noncopyable.
43
+ CVC4Interface (CVC4Interface const &) = delete ;
44
+ CVC4Interface& operator =(CVC4Interface const &) = delete ;
45
+
43
46
CVC4Interface (std::optional<unsigned > _queryTimeout = {});
44
47
45
48
void reset () override ;
Original file line number Diff line number Diff line change 25
25
#include < libsolutil/Common.h>
26
26
#include < libsolutil/FixedHash.h>
27
27
28
- #include < boost/noncopyable.hpp>
29
28
#include < cstdio>
30
29
#include < map>
31
30
#include < set>
35
34
namespace solidity ::smtutil
36
35
{
37
36
38
- class SMTLib2Interface : public SolverInterface , public boost ::noncopyable
37
+ class SMTLib2Interface : public SolverInterface
39
38
{
40
39
public:
40
+ // / Noncopyable.
41
+ SMTLib2Interface (SMTLib2Interface const &) = delete ;
42
+ SMTLib2Interface& operator =(SMTLib2Interface const &) = delete ;
43
+
41
44
explicit SMTLib2Interface (
42
45
std::map<util::h256, std::string> _queryResponses = {},
43
46
frontend::ReadCallback::Callback _smtCallback = {},
Original file line number Diff line number Diff line change 23
23
#include < libsolidity/interface/ReadFile.h>
24
24
#include < libsolutil/FixedHash.h>
25
25
26
- #include < boost/noncopyable.hpp>
27
26
#include < map>
28
27
#include < vector>
29
28
@@ -36,9 +35,13 @@ namespace solidity::smtutil
36
35
* It also checks whether different solvers give conflicting answers
37
36
* to SMT queries.
38
37
*/
39
- class SMTPortfolio : public SolverInterface , public boost ::noncopyable
38
+ class SMTPortfolio : public SolverInterface
40
39
{
41
40
public:
41
+ // / Noncopyable.
42
+ SMTPortfolio (SMTPortfolio const &) = delete ;
43
+ SMTPortfolio& operator =(SMTPortfolio const &) = delete ;
44
+
42
45
SMTPortfolio (
43
46
std::map<util::h256, std::string> _smtlib2Responses = {},
44
47
frontend::ReadCallback::Callback _smtCallback = {},
Original file line number Diff line number Diff line change 23
23
24
24
#include < libsolutil/Common.h>
25
25
26
- #include < boost/noncopyable.hpp>
27
26
#include < cstdio>
28
27
#include < map>
29
28
#include < memory>
Original file line number Diff line number Diff line change 19
19
#pragma once
20
20
21
21
#include < libsmtutil/SolverInterface.h>
22
- #include < boost/noncopyable.hpp>
23
22
#include < z3++.h>
24
23
25
24
namespace solidity ::smtutil
26
25
{
27
26
28
- class Z3Interface : public SolverInterface , public boost ::noncopyable
27
+ class Z3Interface : public SolverInterface
29
28
{
30
29
public:
30
+ // / Noncopyable.
31
+ Z3Interface (Z3Interface const &) = delete ;
32
+ Z3Interface& operator =(Z3Interface const &) = delete ;
33
+
31
34
Z3Interface (std::optional<unsigned > _queryTimeout = {});
32
35
33
36
static bool available ();
Original file line number Diff line number Diff line change 26
26
#include < libsolidity/ast/ASTForward.h>
27
27
#include < liblangutil/Exceptions.h>
28
28
#include < liblangutil/SourceLocation.h>
29
- #include < boost/noncopyable.hpp>
30
29
31
30
namespace solidity ::frontend
32
31
{
Original file line number Diff line number Diff line change 22
22
#include < libsolidity/ast/ASTAnnotations.h>
23
23
#include < liblangutil/EVMVersion.h>
24
24
25
- #include < boost/noncopyable.hpp>
26
25
#include < list>
27
26
#include < map>
28
27
Original file line number Diff line number Diff line change 24
24
#pragma once
25
25
26
26
#include < libsolidity/ast/ASTForward.h>
27
- #include < boost/noncopyable.hpp>
28
27
#include < map>
29
28
#include < memory>
30
29
#include < string>
@@ -41,9 +40,13 @@ class Type; // forward
41
40
* @note must not be destroyed or moved during compilation as its objects can be referenced from
42
41
* other objects.
43
42
*/
44
- class GlobalContext : private boost ::noncopyable
43
+ class GlobalContext
45
44
{
46
45
public:
46
+ // / Noncopyable.
47
+ GlobalContext (GlobalContext const &) = delete ;
48
+ GlobalContext& operator =(GlobalContext const &) = delete ;
49
+
47
50
GlobalContext ();
48
51
void setCurrentContract (ContractDefinition const & _contract);
49
52
void resetCurrentContract () { m_currentContract = nullptr ; }
Original file line number Diff line number Diff line change 31
31
32
32
#include < liblangutil/EVMVersion.h>
33
33
34
- #include < boost/noncopyable.hpp>
35
-
36
34
#include < list>
37
35
#include < map>
38
36
@@ -48,9 +46,13 @@ namespace solidity::frontend
48
46
* Resolves name references, typenames and sets the (explicitly given) types for all variable
49
47
* declarations.
50
48
*/
51
- class NameAndTypeResolver : private boost ::noncopyable
49
+ class NameAndTypeResolver
52
50
{
53
51
public:
52
+ // / Noncopyable.
53
+ NameAndTypeResolver (NameAndTypeResolver const &) = delete ;
54
+ NameAndTypeResolver& operator =(NameAndTypeResolver const &) = delete ;
55
+
54
56
// / Creates the resolver with the given declarations added to the global scope.
55
57
// / @param _scopes mapping of scopes to be used (usually default constructed), these
56
58
// / are filled during the lifetime of this object.
Original file line number Diff line number Diff line change 28
28
#include < liblangutil/EVMVersion.h>
29
29
#include < libyul/optimiser/ASTWalker.h>
30
30
31
- #include < boost/noncopyable.hpp>
32
31
#include < list>
33
32
#include < map>
34
33
Original file line number Diff line number Diff line change 34
34
#include < libsolutil/FixedHash.h>
35
35
#include < libsolutil/LazyInit.h>
36
36
37
- #include < boost/noncopyable.hpp>
38
37
#include < json/json.h>
39
38
40
39
#include < memory>
@@ -62,9 +61,13 @@ class ASTConstVisitor;
62
61
* It is possible to traverse all direct and indirect children of an AST node by calling
63
62
* accept, providing an ASTVisitor.
64
63
*/
65
- class ASTNode : private boost ::noncopyable
64
+ class ASTNode
66
65
{
67
66
public:
67
+ // / Noncopyable.
68
+ ASTNode (ASTNode const &) = delete ;
69
+ ASTNode& operator =(ASTNode const &) = delete ;
70
+
68
71
using CompareByID = frontend::ASTCompareByID<ASTNode>;
69
72
using SourceLocation = langutil::SourceLocation;
70
73
Original file line number Diff line number Diff line change 31
31
#include < liblangutil/SourceLocation.h>
32
32
#include < libsolutil/Common.h>
33
33
34
- #include < boost/noncopyable.hpp>
35
34
#include < functional>
36
35
#include < memory>
37
36
Original file line number Diff line number Diff line change 45
45
#include < libsolutil/FixedHash.h>
46
46
#include < libsolutil/LazyInit.h>
47
47
48
- #include < boost/noncopyable.hpp>
49
48
#include < json/json.h>
50
49
51
50
#include < functional>
@@ -88,9 +87,13 @@ class DeclarationContainer;
88
87
* If error recovery is active, it is possible to progress through the stages even when
89
88
* there are errors. In any case, producing code is only possible without errors.
90
89
*/
91
- class CompilerStack : boost::noncopyable
90
+ class CompilerStack
92
91
{
93
92
public:
93
+ // / Noncopyable.
94
+ CompilerStack (CompilerStack const &) = delete ;
95
+ CompilerStack& operator =(CompilerStack const &) = delete ;
96
+
94
97
enum State {
95
98
Empty,
96
99
SourcesSet,
Original file line number Diff line number Diff line change 20
20
21
21
#include < liblangutil/Exceptions.h>
22
22
23
- #include < boost/noncopyable.hpp>
24
23
#include < functional>
25
24
#include < string>
26
25
27
26
namespace solidity ::frontend
28
27
{
29
28
30
- class ReadCallback : boost::noncopyable
29
+ class ReadCallback
31
30
{
32
31
public:
32
+ // / Noncopyable.
33
+ ReadCallback (ReadCallback const &) = delete ;
34
+ ReadCallback& operator =(ReadCallback const &) = delete ;
35
+
33
36
// / File reading or generic query result.
34
37
struct Result
35
38
{
Original file line number Diff line number Diff line change @@ -36,9 +36,13 @@ namespace solidity::frontend
36
36
* Standard JSON compiler interface, which expects a JSON input and returns a JSON output.
37
37
* See docs/using-the-compiler#compiler-input-and-output-json-description.
38
38
*/
39
- class StandardCompiler : boost::noncopyable
39
+ class StandardCompiler
40
40
{
41
41
public:
42
+ // / Noncopyable.
43
+ StandardCompiler (StandardCompiler const &) = delete ;
44
+ StandardCompiler& operator =(StandardCompiler const &) = delete ;
45
+
42
46
// / Creates a new StandardCompiler.
43
47
// / @param _readFile callback used to read files for import statements. Must return
44
48
// / and must not emit exceptions.
Original file line number Diff line number Diff line change 25
25
#include < libyul/SideEffects.h>
26
26
#include < libyul/ControlFlowSideEffects.h>
27
27
28
- #include < boost/noncopyable.hpp>
29
-
30
28
#include < vector>
31
29
#include < set>
32
30
#include < optional>
@@ -57,8 +55,12 @@ struct BuiltinFunction
57
55
}
58
56
};
59
57
60
- struct Dialect : boost::noncopyable
58
+ struct Dialect
61
59
{
60
+ // / Noncopiable.
61
+ Dialect (Dialect const &) = delete ;
62
+ Dialect& operator =(Dialect const &) = delete ;
63
+
62
64
// / Default type, can be omitted.
63
65
YulString defaultType;
64
66
// / Type used for the literals "true" and "false".
Original file line number Diff line number Diff line change 21
21
22
22
#pragma once
23
23
24
- #include < boost/noncopyable.hpp>
25
-
26
24
#include < unordered_map>
27
25
#include < memory>
28
26
#include < vector>
Original file line number Diff line number Diff line change 31
31
#include < liblangutil/EVMVersion.h>
32
32
#include < liblangutil/SourceLocation.h>
33
33
34
- #include < boost/noncopyable.hpp>
35
-
36
34
#include < functional>
37
35
#include < optional>
38
36
#include < vector>
@@ -46,9 +44,13 @@ class Pattern;
46
44
/* *
47
45
* Container for all simplification rules.
48
46
*/
49
- class SimplificationRules : public boost ::noncopyable
47
+ class SimplificationRules
50
48
{
51
49
public:
50
+ // / Noncopiable.
51
+ SimplificationRules (SimplificationRules const &) = delete ;
52
+ SimplificationRules& operator =(SimplificationRules const &) = delete ;
53
+
52
54
using Rule = evmasm::SimplificationRule<Pattern>;
53
55
54
56
explicit SimplificationRules (std::optional<langutil::EVMVersion> _evmVersion = std::nullopt);
Original file line number Diff line number Diff line change 24
24
#include < test/evmc/evmc.h>
25
25
26
26
#include < boost/filesystem/path.hpp>
27
- #include < boost/noncopyable.hpp>
28
27
#include < boost/program_options.hpp>
29
28
30
29
namespace solidity ::test
@@ -49,8 +48,12 @@ static constexpr auto heraDownloadLink = "https://github.com/ewasm/hera/releases
49
48
50
49
struct ConfigException : public util ::Exception {};
51
50
52
- struct CommonOptions : boost::noncopyable
51
+ struct CommonOptions
53
52
{
53
+ // / Noncopyable.
54
+ CommonOptions (CommonOptions const &) = delete ;
55
+ CommonOptions& operator =(CommonOptions const &) = delete ;
56
+
54
57
std::vector<boost::filesystem::path> vmPaths;
55
58
boost::filesystem::path testPath;
56
59
bool ewasm = false ;
You can’t perform that action at this time.
0 commit comments