Skip to content

Commit f655334

Browse files
committed
Corrected includes of .hpp files
1 parent fe81251 commit f655334

13 files changed

Lines changed: 24 additions & 20 deletions

File tree

.github/workflows/c-cpp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: |
2828
autoconf
2929
./configure
30-
make MODE=Release
30+
make compile MODE=Release
3131
3232
- name: Tests
3333
working-directory: ./

ast/statement.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#define PARSER_STATEMENT_AST_HPP
2626

2727
#include "ast/expr.hpp"
28-
#include "sbg/natural.hpp"
2928
#include "util/debug.hpp"
3029

3130
namespace SBG {

eval/defs.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,7 @@
3030
#include <variant>
3131

3232
#include "ast/expr.hpp"
33-
#include "ast/statement.hpp"
34-
#include "sbg/af_pwmap.hpp"
35-
#include "algorithms/cc/cc.hpp"
3633
#include "algorithms/matching/matching.hpp"
37-
#include "algorithms/scc/scc.hpp"
38-
#include "algorithms/cutvertex/cut_vertex.hpp"
39-
#include "algorithms/toposort/topo_sort.hpp"
40-
#include "algorithms/misc/causalization_builders.hpp"
41-
#include "algorithms/misc/causalization_json.hpp"
4234

4335
namespace SBG {
4436

eval/visitors/eval_expr.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
1818
******************************************************************************/
1919

20+
#include "algorithms/cc/cc.hpp"
21+
#include "algorithms/cutvertex/cut_vertex.hpp"
22+
#include "algorithms/scc/scc.hpp"
23+
#include "algorithms/toposort/topo_sort.hpp"
24+
#include "algorithms/misc/causalization_builders.hpp"
25+
#include "algorithms/misc/causalization_json.hpp"
2026
#include "eval/visitors/eval_expr.hpp"
2127

2228
namespace SBG {

eval/visitors/eval_expr.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "eval/visitors/eval_nat.hpp"
2828
#include "eval/visitors/eval_rat.hpp"
2929
#include "eval/visitors/eval_le.hpp"
30+
#include "sbg/af_pwmap.hpp"
3031

3132
namespace SBG {
3233

eval/visitors/eval_le.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
******************************************************************************/
1919

2020
#include "eval/visitors/eval_le.hpp"
21+
#include "eval/visitors/eval_nat.hpp"
22+
#include "eval/visitors/eval_rat.hpp"
2123

2224
namespace SBG {
2325

eval/visitors/eval_le.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
#ifndef AST_VISITOR_EVALLE
2525
#define AST_VISITOR_EVALLE
2626

27-
#include "eval/visitors/eval_nat.hpp"
28-
#include "eval/visitors/eval_rat.hpp"
27+
#include "eval/defs.hpp"
2928
#include "sbg/lexp.hpp"
3029

3130
namespace SBG {

eval/visitors/eval_rat.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ LIB::RATIONAL EvalRat::operator()(AST::UnaryOp v) const
7272
return -result;
7373

7474
default:
75-
Util::ERROR("EvalExpression: UnaryOp ", v.op(), " unsupported\n");
75+
Util::ERROR("EvalRat: UnaryOp ", v.op(), " unsupported\n");
7676
return 0;
7777
}
7878

79-
Util::ERROR("EvalExpression: UnaryOp ", v.op(), " unsupported\n");
79+
Util::ERROR("EvalRat: UnaryOp ", v.op(), " unsupported\n");
8080
return 0;
8181
}
8282

@@ -99,7 +99,7 @@ LIB::RATIONAL EvalRat::operator()(AST::BinOp v) const
9999
return LIB::RATIONAL(0, 1);
100100
}
101101

102-
Util::ERROR("EvalExpression: BinOp ", v.op(), " unsupported\n");
102+
Util::ERROR("EvalRat: BinOp ", v.op(), " unsupported\n");
103103
return 0;
104104
}
105105

eval/visitors/eval_rat.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
#ifndef AST_VISITOR_EVALRAT
2525
#define AST_VISITOR_EVALRAT
2626

27-
#include "eval/defs.hpp"
2827
#include "eval/visitors/eval_int.hpp"
28+
#include "sbg/rational.hpp"
2929

3030
namespace SBG {
3131

eval/visitors/program_visitor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
1818
******************************************************************************/
1919

20+
#include "eval/visitors/eval_expr.hpp"
2021
#include "eval/visitors/program_visitor.hpp"
2122

2223
namespace SBG {

0 commit comments

Comments
 (0)