Apply linter
diff --git a/tensorflow/compiler/xla/service/hlo_instruction.cc b/tensorflow/compiler/xla/service/hlo_instruction.cc
index a0ac733..3325069 100644
--- a/tensorflow/compiler/xla/service/hlo_instruction.cc
+++ b/tensorflow/compiler/xla/service/hlo_instruction.cc
@@ -2488,7 +2488,8 @@
     extra.push_back(StrCat("sharding=", sharding().ToString()));
   }
   if (!frontend_attributes_.map().empty()) {
-    extra.push_back(StrCat("frontend_attributes=", FrontendAttributesToString(frontend_attributes_)));
+    extra.push_back(StrCat("frontend_attributes=",
+                           FrontendAttributesToString(frontend_attributes_)));
   }
   if (!outer_dimension_partitions_.empty()) {
     extra.push_back(absl::StrFormat("outer_dimension_partitions={%s}",
@@ -3204,10 +3205,10 @@
   return InvalidArgument("Unknown fusion kind: %s", kind_name);
 }
 
-string FrontendAttributesToString(const FrontendAttributes& frontend_attributes){
-  return absl::StrFormat("{%s}",
-                      absl::StrJoin(frontend_attributes.map(), ",",
-                                    absl::PairFormatter("=")));
+string FrontendAttributesToString(
+    const FrontendAttributes& frontend_attributes) {
+  return absl::StrFormat("{%s}", absl::StrJoin(frontend_attributes.map(), ",",
+                                               absl::PairFormatter("=")));
 }
 
 string PaddingConfigToString(const PaddingConfig& padding) {
diff --git a/tensorflow/compiler/xla/service/hlo_instruction.h b/tensorflow/compiler/xla/service/hlo_instruction.h
index e5f22aa..2d4235f 100644
--- a/tensorflow/compiler/xla/service/hlo_instruction.h
+++ b/tensorflow/compiler/xla/service/hlo_instruction.h
@@ -1928,7 +1928,8 @@
 // Custom (de)stringification functions for protos that live inside
 // HloInstruction.
 string PaddingConfigToString(const PaddingConfig& padding);
-string FrontendAttributesToString(const FrontendAttributes& frontend_attributes);
+string FrontendAttributesToString(
+    const FrontendAttributes& frontend_attributes);
 string OpMetadataToString(const OpMetadata& metadata);
 string RandomDistributionToString(const RandomDistribution& distribution);
 string PrecisionToString(const PrecisionConfig::Precision& precision);
diff --git a/tensorflow/compiler/xla/service/hlo_parser.cc b/tensorflow/compiler/xla/service/hlo_parser.cc
index 834fa69..e0dcb2c 100644
--- a/tensorflow/compiler/xla/service/hlo_parser.cc
+++ b/tensorflow/compiler/xla/service/hlo_parser.cc
@@ -273,7 +273,7 @@
   bool ParsePaddingConfig(PaddingConfig* padding);
   bool ParseMetadata(OpMetadata* metadata);
   bool ParseSharding(OpSharding* sharding);
-  bool ParseFrontendAttributes(FrontendAttributes *frontend_attributes);
+  bool ParseFrontendAttributes(FrontendAttributes* frontend_attributes);
   bool ParseSingleSharding(OpSharding* sharding, bool lbrace_pre_lexed);
   bool ParseParameterReplication(ParameterReplication* parameter_replication);
   bool ParseReplicaGroupsOnly(std::vector<ReplicaGroup>* replica_groups);
@@ -682,7 +682,8 @@
   optional<OpSharding> sharding;
   optional<FrontendAttributes> frontend_attributes;
   attrs["sharding"] = {/*required=*/false, AttrTy::kSharding, &sharding};
-  attrs["frontend_attributes"] = {/*required=*/false, AttrTy::kFrontendAttributes, &frontend_attributes};
+  attrs["frontend_attributes"] = {
+      /*required=*/false, AttrTy::kFrontendAttributes, &frontend_attributes};
   optional<ParameterReplication> parameter_replication;
   attrs["parameter_replication"] = {/*required=*/false,
                                     AttrTy::kParameterReplication,
@@ -1847,9 +1848,9 @@
 // attributes
 //   ::= /*empty*/
 //   ::= attribute '=' value (',' attribute '=' value)*
-bool HloParser::ParseFrontendAttributes(FrontendAttributes *frontend_attributes)
-{
-  CHECK(frontend_attributes!= nullptr);
+bool HloParser::ParseFrontendAttributes(
+    FrontendAttributes* frontend_attributes) {
+  CHECK(frontend_attributes != nullptr);
   if (!ParseToken(TokKind::kLbrace,
                   "expected '{' to start frontend attributes")) {
     return false;
@@ -1860,7 +1861,7 @@
     do {
       LocTy loc = lexer_.GetLoc();
       string attribute;
-      if(!ParseAttributeName(&attribute)){
+      if (!ParseAttributeName(&attribute)) {
         return false;
       }
       if (lexer_.GetKind() != TokKind::kIdent) {
@@ -1870,7 +1871,8 @@
       lexer_.Lex();
     } while (EatIfPresent(TokKind::kComma));
   }
-  return ParseToken(TokKind::kRbrace, "expects '}' at the end of frontend attributes");
+  return ParseToken(TokKind::kRbrace,
+                    "expects '}' at the end of frontend attributes");
 }
 
 //  ::= '{' 'replicated'? 'maximal'? ('device=' int)? shape?
@@ -2894,10 +2896,11 @@
       }
       case AttrTy::kFrontendAttributes: {
         FrontendAttributes frontend_attributes;
-        if(!ParseFrontendAttributes(&frontend_attributes)) {
+        if (!ParseFrontendAttributes(&frontend_attributes)) {
           return false;
         }
-        static_cast<optional<FrontendAttributes>*>(attr_out_ptr)->emplace(frontend_attributes);
+        static_cast<optional<FrontendAttributes>*>(attr_out_ptr)
+            ->emplace(frontend_attributes);
         return true;
       }
       case AttrTy::kParameterReplication: {
@@ -4163,7 +4166,8 @@
     return InvalidArgument("Syntax error:\n%s", GetError());
   }
   if (lexer_.GetKind() != TokKind::kEof) {
-    return InvalidArgument("Syntax error:\nExtra content after frontend attributes");
+    return InvalidArgument(
+        "Syntax error:\nExtra content after frontend attributes");
   }
   return attributes;
 }
diff --git a/tensorflow/compiler/xla/service/hlo_parser.h b/tensorflow/compiler/xla/service/hlo_parser.h
index e643d9d..91ce79e 100644
--- a/tensorflow/compiler/xla/service/hlo_parser.h
+++ b/tensorflow/compiler/xla/service/hlo_parser.h
@@ -54,8 +54,9 @@
 // "{replicated}".
 StatusOr<HloSharding> ParseSharding(absl::string_view str);
 
-// Parses frontend attributes from str. str is supposed to contain the body of the
-// frontend attributes , i.e. just the rhs of the "frontend_attributes={...}" attribute string, e.g.,
+// Parses frontend attributes from str. str is supposed to contain the body of
+// the frontend attributes , i.e. just the rhs of the
+// "frontend_attributes={...}" attribute string, e.g.,
 // "{attr_a=a,attr_b=b}".
 StatusOr<FrontendAttributes> ParseFrontendAttributes(absl::string_view str);
 
diff --git a/tensorflow/compiler/xla/service/hlo_parser_test.cc b/tensorflow/compiler/xla/service/hlo_parser_test.cc
index 36ffafc..a5ed289 100644
--- a/tensorflow/compiler/xla/service/hlo_parser_test.cc
+++ b/tensorflow/compiler/xla/service/hlo_parser_test.cc
@@ -2329,7 +2329,8 @@
 
 TEST_F(HloParserTest, ParseFrontendAttributes) {
   const string original = "{attr_a=test_a,attr_b=b}";
-  TF_ASSERT_OK_AND_ASSIGN(FrontendAttributes frontend_attributes, ParseFrontendAttributes(original));
+  TF_ASSERT_OK_AND_ASSIGN(FrontendAttributes frontend_attributes,
+                          ParseFrontendAttributes(original));
   EXPECT_EQ(FrontendAttributesToString(frontend_attributes), original);
 }