Skip to content

Commit 8dd7777

Browse files
committed
clang-format
1 parent 01723ad commit 8dd7777

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

thorin/fe/ast.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
#include "thorin/check.h"
44
#include "thorin/def.h"
5-
#include "thorin/world.h"
65
#include "thorin/rewrite.h"
6+
#include "thorin/world.h"
7+
78
#include "thorin/fe/scopes.h"
89

910
namespace thorin::fe {

thorin/fe/ast.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class AST {
1818
public:
1919
AST(Loc loc)
2020
: loc_(loc) {}
21-
virtual ~AST() {};
21+
virtual ~AST(){};
2222

2323
Loc loc() const { return loc_; }
2424

@@ -79,7 +79,7 @@ class Bndr : public AST {
7979

8080
Sym sym() const { return sym_; }
8181
bool is_anonymous() const { return sym_.is_anonymous(); }
82-
virtual const Def* type(World&) const = 0;
82+
virtual const Def* type(World&) const = 0;
8383
virtual void inject(Scopes&, const Def*) const = 0;
8484

8585
private:

thorin/fe/parser.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ const Def* Parser::parse_pi() {
399399

400400
if (!dom->is_anonymous()) scopes_.bind(dom->sym(), var);
401401
dom->inject(scopes_, var);
402-
//for (auto [sym, i] : binders) scopes_.bind(sym, pi->var(i)); // TODO location
402+
// for (auto [sym, i] : binders) scopes_.bind(sym, pi->var(i)); // TODO location
403403

404404
expect(Tok::Tag::T_arrow, "dependent function type");
405405
auto codom = parse_expr("codomain of a dependent function type", Tok::Prec::Arrow);
@@ -687,7 +687,7 @@ void Parser::parse_nom() {
687687
scopes_.bind(sym, nom);
688688

689689
scopes_.push();
690-
//for (auto [sym, i] : binders) scopes_.bind(sym, nom->var(i));
690+
// for (auto [sym, i] : binders) scopes_.bind(sym, nom->var(i));
691691
if (external) nom->make_external();
692692

693693
scopes_.push();

0 commit comments

Comments
 (0)