Enable CLANGFORMAT

Reviewed By: zertosh

Differential Revision: D31877653

fbshipit-source-id: 91f2e6c8b83dc7da1eb8a071b84fb0b03ec4ac54
This commit is contained in:
Shashank Chaudhry 2021-10-24 20:44:54 -07:00 committed by Facebook GitHub Bot
parent ae0c5335e4
commit 2470aca668
5 changed files with 15 additions and 13 deletions

View File

@ -18,7 +18,8 @@ namespace folly {
class EventBaseManager;
}
namespace facebook { namespace fb303 {
namespace facebook {
namespace fb303 {
enum ThriftFuncAction {
FIRST_ACTION = 0,
@ -32,7 +33,8 @@ enum ThriftFuncAction {
class FacebookBase2 : virtual public cpp2::FacebookServiceSvIf {
time_t startTime;
public:
public:
explicit FacebookBase2(const char*) {
startTime = time(nullptr);
}
@ -41,7 +43,7 @@ public:
int64_t aliveSince() override {
// crude implementation because QsfpCache depends on it
return (uint64_t) startTime;
return (uint64_t)startTime;
}
int64_t getPid() override {
@ -54,8 +56,7 @@ public:
folly::small_vector<int> /*percentiles*/,
int64_t /*bucketSize*/,
int64_t /*min*/,
int64_t /*max*/) {
}
int64_t /*max*/) {}
void exportThriftFuncHist(
const std::string& funcName,
@ -74,4 +75,5 @@ public:
}
};
}}
} // namespace fb303
} // namespace facebook

View File

@ -11,6 +11,5 @@
// TODO: actually implement this
#ifndef VLOG_EVERY_MS
#define VLOG_EVERY_MS(verboselevel, ms) \
VLOG(verboselevel)
#define VLOG_EVERY_MS(verboselevel, ms) VLOG(verboselevel)
#endif

View File

@ -22,7 +22,6 @@ class NetworkUtil {
bool disableIpv6 = false) {
return "";
}
};
} // namespace network
} // namespace facebook

View File

@ -22,8 +22,8 @@ class Process {
std::string* out,
std::string* err,
int64_t timeoutMsecs = 0) {
return true;
}
return true;
}
};
} // namespace process

View File

@ -14,7 +14,8 @@
#include <fb303/ExportedStatMapImpl.h>
#include <folly/Range.h>
namespace facebook { namespace stats {
namespace facebook {
namespace stats {
class MonotonicCounter {
public:
@ -29,4 +30,5 @@ class MonotonicCounter {
return kName;
}
};
}}
} // namespace stats
} // namespace facebook