logd: specify clang format
Switch _all_ file's coding style to match to ease all future changes.
SideEffects: None
Test: compile
Bug: 35373582
Change-Id: I470cb17f64fa48f14aafc02f574e296bffe3a3f3
diff --git a/logd/LogWhiteBlackList.h b/logd/LogWhiteBlackList.h
index 8b8e02f..6e9893b 100644
--- a/logd/LogWhiteBlackList.h
+++ b/logd/LogWhiteBlackList.h
@@ -19,8 +19,8 @@
#include <sys/types.h>
-#include <list>
#include <string.h>
+#include <list>
#include "LogBufferElement.h"
@@ -33,16 +33,22 @@
const pid_t mPid;
int cmp(uid_t uid, pid_t pid) const;
-public:
- static const uid_t uid_all = (uid_t) -1;
- static const pid_t pid_all = (pid_t) -1;
+ public:
+ static const uid_t uid_all = (uid_t)-1;
+ static const pid_t pid_all = (pid_t)-1;
Prune(uid_t uid, pid_t pid);
- uid_t getUid() const { return mUid; }
- pid_t getPid() const { return mPid; }
+ uid_t getUid() const {
+ return mUid;
+ }
+ pid_t getPid() const {
+ return mPid;
+ }
- int cmp(LogBufferElement *e) const { return cmp(e->getUid(), e->getPid()); }
+ int cmp(LogBufferElement* e) const {
+ return cmp(e->getUid(), e->getPid());
+ }
std::string format();
};
@@ -55,20 +61,28 @@
bool mWorstUidEnabled;
bool mWorstPidOfSystemEnabled;
-public:
+ public:
PruneList();
~PruneList();
- int init(const char *str);
+ int init(const char* str);
- bool naughty(LogBufferElement *element);
- bool naughty(void) { return !mNaughty.empty(); }
- bool nice(LogBufferElement *element);
- bool nice(void) { return !mNice.empty(); }
- bool worstUidEnabled() const { return mWorstUidEnabled; }
- bool worstPidOfSystemEnabled() const { return mWorstPidOfSystemEnabled; }
+ bool naughty(LogBufferElement* element);
+ bool naughty(void) {
+ return !mNaughty.empty();
+ }
+ bool nice(LogBufferElement* element);
+ bool nice(void) {
+ return !mNice.empty();
+ }
+ bool worstUidEnabled() const {
+ return mWorstUidEnabled;
+ }
+ bool worstPidOfSystemEnabled() const {
+ return mWorstPidOfSystemEnabled;
+ }
std::string format();
};
-#endif // _LOGD_LOG_WHITE_BLACK_LIST_H__
+#endif // _LOGD_LOG_WHITE_BLACK_LIST_H__