Commit 18922fbd by Ian Lance Taylor

compiler: remove trailing spaces

    
    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/175557

From-SVN: r271014
parent ab87ac8d
fcbf847c3bf76fb475c9020e1c57057134407263 0b4cf8ded107ccbfbd4af7f4e056f23f941d0f86
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.
...@@ -564,7 +564,7 @@ class Backend ...@@ -564,7 +564,7 @@ class Backend
// ASM_NAME is encoded assembler-friendly version of the name, or the // ASM_NAME is encoded assembler-friendly version of the name, or the
// empty string if no encoding is needed. // 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 // IS_HIDDEN will be true if the descriptor should only be visible
// within the current object. // within the current object.
...@@ -634,7 +634,7 @@ class Backend ...@@ -634,7 +634,7 @@ class Backend
// //
// TYPE will be a struct type; the type of the returned expression // TYPE will be a struct type; the type of the returned expression
// must be a pointer to this struct type. // must be a pointer to this struct type.
// //
// We must create the named structure before we know its // We must create the named structure before we know its
// initializer, because the initializer may refer to its own // initializer, because the initializer may refer to its own
// address. After calling this the frontend will call // address. After calling this the frontend will call
...@@ -668,7 +668,7 @@ class Backend ...@@ -668,7 +668,7 @@ class Backend
Btype* type, Location) = 0; Btype* type, Location) = 0;
// Labels. // Labels.
// Create a new label. NAME will be empty if this is a label // Create a new label. NAME will be empty if this is a label
// created by the frontend for a loop construct. The location is // created by the frontend for a loop construct. The location is
// where the label is defined. // where the label is defined.
......
...@@ -1704,7 +1704,7 @@ class Boolean_expression : public Expression ...@@ -1704,7 +1704,7 @@ class Boolean_expression : public Expression
void void
do_dump_expression(Ast_dump_context* ast_dump_context) const do_dump_expression(Ast_dump_context* ast_dump_context) const
{ ast_dump_context->ostream() << (this->val_ ? "true" : "false"); } { ast_dump_context->ostream() << (this->val_ ? "true" : "false"); }
private: private:
// The constant. // The constant.
bool val_; bool val_;
...@@ -2015,8 +2015,8 @@ String_info_expression::do_dump_expression( ...@@ -2015,8 +2015,8 @@ String_info_expression::do_dump_expression(
ast_dump_context->ostream() << "stringinfo("; ast_dump_context->ostream() << "stringinfo(";
this->string_->dump_expression(ast_dump_context); this->string_->dump_expression(ast_dump_context);
ast_dump_context->ostream() << ","; ast_dump_context->ostream() << ",";
ast_dump_context->ostream() << ast_dump_context->ostream() <<
(this->string_info_ == STRING_INFO_DATA ? "data" (this->string_info_ == STRING_INFO_DATA ? "data"
: this->string_info_ == STRING_INFO_LENGTH ? "length" : this->string_info_ == STRING_INFO_LENGTH ? "length"
: "unknown"); : "unknown");
ast_dump_context->ostream() << ")"; ast_dump_context->ostream() << ")";
...@@ -2694,7 +2694,7 @@ class Complex_expression : public Expression ...@@ -2694,7 +2694,7 @@ class Complex_expression : public Expression
// Write REAL/IMAG to dump context. // Write REAL/IMAG to dump context.
static void static void
dump_complex(Ast_dump_context* ast_dump_context, const mpc_t val); dump_complex(Ast_dump_context* ast_dump_context, const mpc_t val);
protected: protected:
bool bool
do_is_constant() const do_is_constant() const
......
...@@ -2806,7 +2806,7 @@ class Unknown_expression : public Parser_expression ...@@ -2806,7 +2806,7 @@ class Unknown_expression : public Parser_expression
void void
do_dump_expression(Ast_dump_context*) const; do_dump_expression(Ast_dump_context*) const;
private: private:
// The unknown name. // The unknown name.
Named_object* named_object_; Named_object* named_object_;
...@@ -2832,7 +2832,7 @@ class Index_expression : public Parser_expression ...@@ -2832,7 +2832,7 @@ class Index_expression : public Parser_expression
// Dump an index expression, i.e. an expression of the form // 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. // expr[expr], expr[expr:expr], or expr[expr:expr:expr] to a dump context.
static void 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* start, const Expression* end,
const Expression* cap); const Expression* cap);
...@@ -2988,7 +2988,7 @@ class Array_index_expression : public Expression ...@@ -2988,7 +2988,7 @@ class Array_index_expression : public Expression
void void
do_dump_expression(Ast_dump_context*) const; do_dump_expression(Ast_dump_context*) const;
private: private:
// The array we are getting a value from. // The array we are getting a value from.
Expression* array_; Expression* array_;
...@@ -3828,7 +3828,7 @@ class Map_construction_expression : public Expression ...@@ -3828,7 +3828,7 @@ class Map_construction_expression : public Expression
void void
do_dump_expression(Ast_dump_context*) const; do_dump_expression(Ast_dump_context*) const;
private: private:
// The type of the map to construct. // The type of the map to construct.
Type* type_; Type* type_;
......
...@@ -3483,7 +3483,7 @@ Parse::expression(Precedence precedence, bool may_be_sink, ...@@ -3483,7 +3483,7 @@ Parse::expression(Precedence precedence, bool may_be_sink,
if (is_parenthesized != NULL) if (is_parenthesized != NULL)
*is_parenthesized = false; *is_parenthesized = false;
Operator op = token->op(); Operator op = token->op();
Location binop_location = token->location(); Location binop_location = token->location();
...@@ -3576,7 +3576,7 @@ Parse::unary_expr(bool may_be_sink, bool may_be_composite_lit, ...@@ -3576,7 +3576,7 @@ Parse::unary_expr(bool may_be_sink, bool may_be_composite_lit,
// There is a complex parse for <- chan. The choices are // There is a complex parse for <- chan. The choices are
// Convert x to type <- chan int: // Convert x to type <- chan int:
// (<- chan int)(x) // (<- chan int)(x)
// Receive from (x converted to type chan <- chan int): // Receive from (x converted to type chan <- chan int):
// (<- chan <- chan int (x)) // (<- chan <- chan int (x))
// Convert x to type <- chan (<- chan int). // Convert x to type <- chan (<- chan int).
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
// This abstract class provides an interface strings for whatever purpose. // This abstract class provides an interface strings for whatever purpose.
// Used for example for exporting and dumping objects. // Used for example for exporting and dumping objects.
class String_dump class String_dump
{ {
public: public:
// Write a string. Implements the String_dump interface. // Write a string. Implements the String_dump interface.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment