Skip to content

Commit 09a09ad

Browse files
authored
Merge pull request #79 from popoffka/sort-includes
Ensure everything compiles individually & sort includes
2 parents 0a92e22 + e259064 commit 09a09ad

File tree

176 files changed

+366
-440
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+366
-440
lines changed

libsnark/common/data_structures/accumulation_vector.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#ifndef ACCUMULATION_VECTOR_HPP_
1313
#define ACCUMULATION_VECTOR_HPP_
1414

15+
#include <iostream>
16+
1517
#include <libsnark/common/data_structures/sparse_vector.hpp>
1618

1719
namespace libsnark {

libsnark/common/data_structures/integer_permutation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
* @copyright MIT license (see LICENSE file)
1212
*****************************************************************************/
1313

14-
#include <libsnark/common/data_structures/integer_permutation.hpp>
15-
1614
#include <algorithm>
1715
#include <cassert>
1816
#include <numeric>
1917
#include <unordered_set>
2018

19+
#include <libsnark/common/data_structures/integer_permutation.hpp>
20+
2121
namespace libsnark {
2222

2323
integer_permutation::integer_permutation(const size_t size) :

libsnark/common/data_structures/merkle_tree.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#include <map>
1616
#include <vector>
17+
1718
#include <libff/common/utils.hpp>
1819

1920
namespace libsnark {

libsnark/common/data_structures/set_commitment.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
* @copyright MIT license (see LICENSE file)
66
*****************************************************************************/
77

8-
#include <libsnark/common/data_structures/set_commitment.hpp>
98
#include <libff/common/serialization.hpp>
109

10+
#include <libsnark/common/data_structures/set_commitment.hpp>
11+
1112
namespace libsnark {
1213

1314
bool set_membership_proof::operator==(const set_membership_proof &other) const

libsnark/common/data_structures/set_commitment.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#define SET_COMMITMENT_HPP_
1414

1515
#include <libff/common/utils.hpp>
16+
1617
#include <libsnark/common/data_structures/merkle_tree.hpp>
1718
#include <libsnark/gadgetlib1/gadgets/hashes/hash_io.hpp> // TODO: the current structure is suboptimal
1819

libsnark/common/data_structures/sparse_vector.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#ifndef SPARSE_VECTOR_HPP_
1313
#define SPARSE_VECTOR_HPP_
1414

15+
#include <iostream>
1516
#include <vector>
1617

1718
namespace libsnark {

libsnark/common/data_structures/sparse_vector.tcc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
#ifndef SPARSE_VECTOR_TCC_
1515
#define SPARSE_VECTOR_TCC_
1616

17-
#include <libff/algebra/scalar_multiplication/multiexp.hpp>
18-
1917
#include <numeric>
2018

19+
#include <libff/algebra/scalar_multiplication/multiexp.hpp>
20+
2121
namespace libsnark {
2222

2323
template<typename T>

libsnark/common/routing_algorithms/as_waksman_routing_algorithm.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#include <vector>
4444

4545
#include <libff/common/utils.hpp>
46+
4647
#include <libsnark/common/data_structures/integer_permutation.hpp>
4748

4849
namespace libsnark {

libsnark/common/routing_algorithms/benes_routing_algorithm.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
* @copyright MIT license (see LICENSE file)
1212
*****************************************************************************/
1313

14-
#include <libsnark/common/routing_algorithms/benes_routing_algorithm.hpp>
1514
#include <cassert>
1615

16+
#include <libsnark/common/routing_algorithms/benes_routing_algorithm.hpp>
17+
1718
namespace libsnark {
1819

1920
/**

libsnark/common/routing_algorithms/benes_routing_algorithm.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@
2727

2828
#include <vector>
2929

30-
#include <libsnark/common/data_structures/integer_permutation.hpp>
3130
#include <libff/common/utils.hpp>
3231

32+
#include <libsnark/common/data_structures/integer_permutation.hpp>
33+
3334
namespace libsnark {
3435

3536
/**

0 commit comments

Comments
 (0)