Skip to content

Commit e501a05

Browse files
committed
Remove space following reference-to (&)
1 parent 959f618 commit e501a05

File tree

130 files changed

+736
-736
lines changed

Some content is hidden

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

130 files changed

+736
-736
lines changed

src/aa-path-symex/path_symex_state.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class path_symex_statet
8383

8484
// like initial state except that branches are copied from "other"
8585
// and history will be 'nil'
86-
static path_symex_statet lazy_copy(path_symex_statet& other)
86+
static path_symex_statet lazy_copy(path_symex_statet &other)
8787
{
8888
// allow compiler to use RVO
8989
return path_symex_statet(
@@ -281,7 +281,7 @@ class path_symex_statet
281281

282282
// On first call, O(N) where N is the length of the execution path
283283
// leading to this state. Subsequent calls run in constant time.
284-
const branchest& get_branches()
284+
const branchest &get_branches()
285285
{
286286
if(!branches.empty() || history.is_nil())
287287
return branches;

src/analyses/cfg_dominators.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ typedef cfg_dominators_templatet<
275275

276276
template<>
277277
inline void dominators_pretty_print_node(
278-
const goto_programt::const_targett& node,
279-
std::ostream& out)
278+
const goto_programt::const_targett &node,
279+
std::ostream &out)
280280
{
281281
out << node->location_number;
282282
}

src/analyses/constant_propagator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void constant_propagator_domaint::assign_rec(
3535
const exprt &lhs, const exprt &rhs,
3636
const namespacet &ns)
3737
{
38-
const typet & rhs_type = ns.follow(rhs.type());
38+
const typet &rhs_type = ns.follow(rhs.type());
3939

4040
#ifdef DEBUG
4141
std::cout << "assign: " << from_expr(ns, "", lhs)

src/analyses/dirty.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class dirtyt
4545
return operator()(expr.get_identifier());
4646
}
4747

48-
const id_sett& get_dirty_ids() const
48+
const id_sett &get_dirty_ids() const
4949
{
5050
return dirty;
5151
}

src/analyses/flow_insensitive_analysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class flow_insensitive_analysis_baset
8080

8181
std::map<locationt, unsigned> statistics;
8282

83-
bool seen(const locationt& l)
83+
bool seen(const locationt &l)
8484
{
8585
return (seen_locations.find(l)!=seen_locations.end());
8686
}

src/analyses/goto_rw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ void rw_range_sett::get_objects_typecast(
553553
const range_spect &range_start,
554554
const range_spect &size)
555555
{
556-
const exprt& op=tc.op();
556+
const exprt &op=tc.op();
557557

558558
range_spect new_size=
559559
to_range_spect(pointer_offset_bits(op.type(), ns));

src/analyses/goto_rw.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,17 @@ class rw_range_sett
9595
{
9696
}
9797

98-
const objectst & get_r_set() const
98+
const objectst &get_r_set() const
9999
{
100100
return r_range_set;
101101
}
102102

103-
const objectst & get_w_set() const
103+
const objectst &get_w_set() const
104104
{
105105
return w_range_set;
106106
}
107107

108-
const range_domaint& get_ranges(objectst::const_iterator it) const
108+
const range_domaint &get_ranges(objectst::const_iterator it) const
109109
{
110110
assert(dynamic_cast<range_domaint*>(it->second)!=0);
111111
return *static_cast<range_domaint*>(it->second);
@@ -211,7 +211,7 @@ class rw_range_sett
211211
const range_spect &range_end);
212212
};
213213

214-
inline std::ostream & operator << (
214+
inline std::ostream &operator << (
215215
std::ostream &out,
216216
const rw_range_sett &rw_set)
217217
{
@@ -274,7 +274,7 @@ class rw_guarded_range_set_value_sett:public rw_range_set_value_sett
274274
{
275275
}
276276

277-
const guarded_range_domaint& get_ranges(objectst::const_iterator it) const
277+
const guarded_range_domaint &get_ranges(objectst::const_iterator it) const
278278
{
279279
assert(dynamic_cast<guarded_range_domaint*>(it->second)!=0);
280280
return *static_cast<guarded_range_domaint*>(it->second);

src/analyses/local_may_alias.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class local_may_alias_factoryt
112112
target_map[i_it]=f_it->first;
113113
}
114114

115-
local_may_aliast & operator()(const irep_idt &fkt)
115+
local_may_aliast &operator()(const irep_idt &fkt)
116116
{
117117
assert(goto_functions!=NULL);
118118
fkt_mapt::iterator f_it=fkt_map.find(fkt);
@@ -126,7 +126,7 @@ class local_may_alias_factoryt
126126
new local_may_aliast(f_it2->second)));
127127
}
128128

129-
local_may_aliast & operator()(goto_programt::const_targett t)
129+
local_may_aliast &operator()(goto_programt::const_targett t)
130130
{
131131
target_mapt::const_iterator t_it=
132132
target_map.find(t);

src/analyses/reaching_definitions.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void rd_range_domaint::transform_dead(
145145
const namespacet &ns,
146146
locationt from)
147147
{
148-
const irep_idt& identifier=
148+
const irep_idt &identifier=
149149
to_symbol_expr(to_code_dead(from->code).symbol()).get_identifier();
150150

151151
valuest::iterator entry=values.find(identifier);
@@ -243,7 +243,7 @@ void rd_range_domaint::transform_function_call(
243243
++it;
244244
}
245245

246-
const symbol_exprt& fn_symbol_expr=to_symbol_expr(code.function());
246+
const symbol_exprt &fn_symbol_expr=to_symbol_expr(code.function());
247247
const code_typet &code_type=
248248
to_code_type(ns.lookup(fn_symbol_expr.get_identifier()).type);
249249

@@ -869,7 +869,7 @@ Function: rd_range_domaint::get
869869
870870
\*******************************************************************/
871871

872-
const rd_range_domaint::ranges_at_loct& rd_range_domaint::get(
872+
const rd_range_domaint::ranges_at_loct &rd_range_domaint::get(
873873
const irep_idt &identifier) const
874874
{
875875
populate_cache(identifier);

src/analyses/reaching_definitions.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ template<typename V>
2727
class sparse_bitvector_analysist
2828
{
2929
public:
30-
const V& get(const std::size_t value_index) const
30+
const V &get(const std::size_t value_index) const
3131
{
3232
assert(value_index<values.size());
3333
return values[value_index]->first;
3434
}
3535

36-
std::size_t add(const V& value)
36+
std::size_t add(const V &value)
3737
{
3838
inner_mapt &m=value_map[value.identifier];
3939

@@ -159,7 +159,7 @@ class rd_range_domaint:public ai_domain_baset
159159
typedef std::multimap<range_spect, range_spect> rangest;
160160
typedef std::map<locationt, rangest> ranges_at_loct;
161161

162-
const ranges_at_loct& get(const irep_idt &identifier) const;
162+
const ranges_at_loct &get(const irep_idt &identifier) const;
163163
const void clear_cache(const irep_idt &identifier) const
164164
{
165165
export_cache[identifier].clear();

0 commit comments

Comments
 (0)