Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cca0e4b6 authored by Zach Johnson's avatar Zach Johnson
Browse files

Format gd/grpc with new clang-format

find grpc -regex '.*\.\(cc\|h\|tpp\)' -exec clang-format -style=file -i {} \;

Test: cert/run --host
Bug: 156858180
Tag: #gd-refactor
Change-Id: If6fd5a5218b1f740ad0e1a05fc9ab4d54dd0fce4
parent 3a796541
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -24,8 +24,7 @@ using ::grpc::ServerBuilder;
namespace bluetooth {
namespace grpc {

void GrpcModule::ListDependencies(ModuleList* list) {
}
void GrpcModule::ListDependencies(ModuleList* list) {}

void GrpcModule::Start() {
  ASSERT(!started_);
@@ -103,10 +102,7 @@ std::string GrpcModule::ToString() const {
  return "Grpc Module";
}

const ::bluetooth::ModuleFactory GrpcModule::Factory = ::bluetooth::ModuleFactory([]() {
  return new GrpcModule();
});

const ::bluetooth::ModuleFactory GrpcModule::Factory = ::bluetooth::ModuleFactory([]() { return new GrpcModule(); });

void GrpcFacadeModule::ListDependencies(ModuleList* list) {
  list->add<GrpcModule>();
+5 −4
Original line number Diff line number Diff line
@@ -16,12 +16,12 @@

#pragma once

#include <functional>
#include <vector>

#include <grpc++/grpc++.h>
#include <module.h>

#include <functional>
#include <vector>

namespace bluetooth {
namespace grpc {

@@ -60,6 +60,7 @@ class GrpcModule : public ::bluetooth::Module {

class GrpcFacadeModule : public ::bluetooth::Module {
  friend GrpcModule;

 protected:
  void ListDependencies(ModuleList* list) override;