Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
leissa committed Mar 13, 2024
1 parent 4a73bdd commit b9b6962
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ IncludeCategories:
Priority: 5
- Regex: '<thorin/[[:alnum:]_]+\.h>'
Priority: 4
- Regex: '<c[[:alnum:]]+>'
- Regex: '<c[[:alnum:]_]+>'
Priority: 1
- Regex: '<[[:alnum:]]+>'
- Regex: '<[[:alnum:]_]+>'
Priority: 2
- Regex: '<.*>'
Priority: 3
Expand Down
1 change: 0 additions & 1 deletion include/thorin/util/print.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ template<class T, class... Args> std::ostream& print(std::ostream& os, const cha
/// As above but end with `std::endl`.
template<class... Args> std::ostream& println(std::ostream& os, const char* fmt, Args&&... args) {
return print(os, fmt, std::forward<Args&&>(args)...) << std::endl;
;
}

/// Wraps thorin::print to output a formatted `std:string`.
Expand Down
4 changes: 2 additions & 2 deletions include/thorin/world.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

#include <sstream>
#include <string>
#include <string_view>
#include <type_traits>

#include <absl/container/btree_map.h>
#include <absl/container/btree_set.h>
#include <fe/arena.h>
#include <string_view>
#include <type_traits>

#include "thorin/axiom.h"
#include "thorin/check.h"
Expand Down
4 changes: 2 additions & 2 deletions src/thorin/dot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ template<class T> std::string escape(const T& val) {
return str;
}

} // namespace

class Dot {
public:
Dot(std::ostream& ostream, bool types)
Expand Down Expand Up @@ -110,6 +108,8 @@ class Dot {
DefSet done_;
};

} // namespace

void Def::dot(std::ostream& ostream, uint32_t max, bool types) const { Dot(ostream, types).run(this, max); }

void Def::dot(const char* file, uint32_t max, bool types) const {
Expand Down

0 comments on commit b9b6962

Please sign in to comment.