Skip to content

Commit ba46eb4

Browse files
author
martin
committed
Clang-format changes to the sharing map.
1 parent 2d7dd62 commit ba46eb4

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

src/util/sharing_map.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ Author: Daniel Poetzl
2626
#include <tuple>
2727
#include <type_traits>
2828
#include <vector>
29-
#include <set>
3029

3130
#include "as_const.h"
3231
#include "irep.h"
@@ -391,12 +390,12 @@ class sharing_mapt
391390

392391
static void insert_view_item(viewt &v, view_itemt &&vi)
393392
{
394-
v.push_back(vi);
393+
v.push_back(vi);
395394
}
396395

397396
static void insert_view_item(sorted_viewt &v, view_itemt &&vi)
398397
{
399-
v.insert(vi);
398+
v.insert(vi);
400399
}
401400

402401
class delta_view_itemt
@@ -448,7 +447,8 @@ class sharing_mapt
448447
/// - Best case: O(N + H)
449448
///
450449
/// \param [out] view: Empty view
451-
template <class V> void get_view(V&) const;
450+
template <class V>
451+
void get_view(V &) const;
452452
viewt get_view() const
453453
{
454454
viewt result;
@@ -495,7 +495,8 @@ class sharing_mapt
495495
const bool only_common = true) const;
496496

497497
delta_viewt get_delta_view(
498-
const sharing_mapt &other, const bool only_common=true) const;
498+
const sharing_mapt &other,
499+
const bool only_common = true) const;
499500

500501
/// Call a function for every key-value pair in the map.
501502
///

src/util/std_expr.h

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,17 @@ class symbol_exprt : public nullary_exprt
114114
}
115115
};
116116

117-
namespace std {
118-
template<> struct hash<::symbol_exprt>
117+
namespace std
118+
{
119+
template <>
120+
struct hash<::symbol_exprt>
121+
{
122+
size_t operator()(const ::symbol_exprt &sym)
119123
{
120-
size_t operator()(const ::symbol_exprt& sym)
121-
{
122-
return irep_id_hash()(sym.get_identifier());
123-
}
124-
};
125-
}
124+
return irep_id_hash()(sym.get_identifier());
125+
}
126+
};
127+
} // namespace std
126128

127129
/// Expression to hold a symbol (variable) with extra accessors to
128130
/// ID_c_static_lifetime and ID_C_thread_local

0 commit comments

Comments
 (0)