Whitespace fixes

This commit is contained in:
John Wiegley 2012-03-07 02:49:03 -06:00
parent cabec6db1a
commit c86bbd4547
4 changed files with 6 additions and 8 deletions

View file

@ -97,7 +97,6 @@ struct annotation_t : public supports_flags<>,
}
void parse(std::istream& in);
void print(std::ostream& out, bool keep_base = false,
bool no_computed_annotations = false) const;

View file

@ -82,6 +82,7 @@ public:
void pop_report() {
assert(! report_stack.empty());
report_stack.pop_front();
// There should always be the "default report" waiting on the stack.
assert(! report_stack.empty());
scope_t::default_scope = &report();

View file

@ -53,8 +53,8 @@ void symbol_scope_t::define(const symbol_t::kind_t kind,
assert(i != symbols->end());
symbols->erase(i);
result = symbols->insert(symbol_map::value_type(symbol_t(kind, name, def),
def));
result = symbols->insert(symbol_map::value_type
(symbol_t(kind, name, def), def));
if (! result.second)
throw_(compile_error,
_("Redefinition of '%1' in the same scope") << name);

View file

@ -144,8 +144,7 @@ public:
explicit child_scope_t() : parent(NULL) {
TRACE_CTOR(child_scope_t, "");
}
explicit child_scope_t(scope_t& _parent)
: parent(&_parent) {
explicit child_scope_t(scope_t& _parent) : parent(&_parent) {
TRACE_CTOR(child_scope_t, "scope_t&");
}
virtual ~child_scope_t() {
@ -276,7 +275,7 @@ class symbol_scope_t : public child_scope_t
optional<symbol_map> symbols;
public:
explicit symbol_scope_t() {
explicit symbol_scope_t() : child_scope_t() {
TRACE_CTOR(symbol_scope_t, "");
}
explicit symbol_scope_t(scope_t& _parent) : child_scope_t(_parent) {
@ -388,8 +387,7 @@ public:
: context_scope_t(_parent, _parent.type_context(),
_parent.type_required()),
ptr(NULL), locus(_locus), depth(_depth) {
TRACE_CTOR(call_scope_t,
"scope_t&, value_t::type_t, bool, expr_t::ptr_op_t *, int");
TRACE_CTOR(call_scope_t, "scope_t&, expr_t::ptr_op_t *, const int");
}
virtual ~call_scope_t() {
TRACE_DTOR(call_scope_t);