compiler: remove trailing spaces
Change-Id: I1c3ec6c711a88fdf50046f7cf03f2948f686998b
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/175557
Reviewed-by: Ian Lance Taylor <iant@golang.org>
diff --git a/go/backend.h b/go/backend.h
index 6bca42e..c5b5d8f 100644
--- a/go/backend.h
+++ b/go/backend.h
@@ -564,7 +564,7 @@
// ASM_NAME is encoded assembler-friendly version of the name, or the
// empty string if no encoding is needed.
//
- // TYPE is the type of the implicit variable.
+ // TYPE is the type of the implicit variable.
//
// IS_HIDDEN will be true if the descriptor should only be visible
// within the current object.
@@ -634,7 +634,7 @@
//
// TYPE will be a struct type; the type of the returned expression
// must be a pointer to this struct type.
- //
+ //
// We must create the named structure before we know its
// initializer, because the initializer may refer to its own
// address. After calling this the frontend will call
@@ -668,7 +668,7 @@
Btype* type, Location) = 0;
// Labels.
-
+
// Create a new label. NAME will be empty if this is a label
// created by the frontend for a loop construct. The location is
// where the label is defined.
diff --git a/go/expressions.cc b/go/expressions.cc
index efb3d0d..402e8d3 100644
--- a/go/expressions.cc
+++ b/go/expressions.cc
@@ -1704,7 +1704,7 @@
void
do_dump_expression(Ast_dump_context* ast_dump_context) const
{ ast_dump_context->ostream() << (this->val_ ? "true" : "false"); }
-
+
private:
// The constant.
bool val_;
@@ -2015,8 +2015,8 @@
ast_dump_context->ostream() << "stringinfo(";
this->string_->dump_expression(ast_dump_context);
ast_dump_context->ostream() << ",";
- ast_dump_context->ostream() <<
- (this->string_info_ == STRING_INFO_DATA ? "data"
+ ast_dump_context->ostream() <<
+ (this->string_info_ == STRING_INFO_DATA ? "data"
: this->string_info_ == STRING_INFO_LENGTH ? "length"
: "unknown");
ast_dump_context->ostream() << ")";
@@ -2694,7 +2694,7 @@
// Write REAL/IMAG to dump context.
static void
dump_complex(Ast_dump_context* ast_dump_context, const mpc_t val);
-
+
protected:
bool
do_is_constant() const
diff --git a/go/expressions.h b/go/expressions.h
index d2a3472..7d3cfd8 100644
--- a/go/expressions.h
+++ b/go/expressions.h
@@ -2806,7 +2806,7 @@
void
do_dump_expression(Ast_dump_context*) const;
-
+
private:
// The unknown name.
Named_object* named_object_;
@@ -2832,7 +2832,7 @@
// Dump an index expression, i.e. an expression of the form
// expr[expr], expr[expr:expr], or expr[expr:expr:expr] to a dump context.
static void
- dump_index_expression(Ast_dump_context*, const Expression* expr,
+ dump_index_expression(Ast_dump_context*, const Expression* expr,
const Expression* start, const Expression* end,
const Expression* cap);
@@ -2988,7 +2988,7 @@
void
do_dump_expression(Ast_dump_context*) const;
-
+
private:
// The array we are getting a value from.
Expression* array_;
@@ -3828,7 +3828,7 @@
void
do_dump_expression(Ast_dump_context*) const;
-
+
private:
// The type of the map to construct.
Type* type_;
diff --git a/go/parse.cc b/go/parse.cc
index 6ed4377..e611c70 100644
--- a/go/parse.cc
+++ b/go/parse.cc
@@ -3483,7 +3483,7 @@
if (is_parenthesized != NULL)
*is_parenthesized = false;
-
+
Operator op = token->op();
Location binop_location = token->location();
@@ -3576,7 +3576,7 @@
// There is a complex parse for <- chan. The choices are
// Convert x to type <- chan int:
- // (<- chan int)(x)
+ // (<- chan int)(x)
// Receive from (x converted to type chan <- chan int):
// (<- chan <- chan int (x))
// Convert x to type <- chan (<- chan int).
diff --git a/go/string-dump.h b/go/string-dump.h
index fe4807d..cd35d5e 100644
--- a/go/string-dump.h
+++ b/go/string-dump.h
@@ -10,7 +10,7 @@
// This abstract class provides an interface strings for whatever purpose.
// Used for example for exporting and dumping objects.
-class String_dump
+class String_dump
{
public:
// Write a string. Implements the String_dump interface.