clang-format existing code in statsd.
Added .clang-format, because there isn't an official .clang-format file for Android framework code.
before we upload changes, do:
clang-format -style=file -i [file list]
to format the files that you touched.
Test: formatting only. NO code changes.
Change-Id: I90e87f1ee6618da8ea9bc2221c609c415a4046a8
diff --git a/cmds/statsd/src/LogReader.h b/cmds/statsd/src/LogReader.h
index 4c2afe8..fc19585 100644
--- a/cmds/statsd/src/LogReader.h
+++ b/cmds/statsd/src/LogReader.h
@@ -27,10 +27,9 @@
namespace statsd {
/**
- * Callback for LogReader
+ * Callback for LogReader
*/
-class LogListener : public virtual android::RefBase
-{
+class LogListener : public virtual android::RefBase {
public:
LogListener();
virtual ~LogListener();
@@ -43,8 +42,7 @@
/**
* Class to read logs from logd.
*/
-class LogReader : public virtual android::RefBase
-{
+class LogReader : public virtual android::RefBase {
public:
/**
* Construct the LogReader with a pointer back to the StatsService
@@ -61,9 +59,9 @@
*/
void AddListener(const android::sp<LogListener>& listener);
- /**
- * Run the main LogReader loop
- */
+ /**
+ * Run the main LogReader loop
+ */
void Run();
private:
@@ -81,8 +79,8 @@
int connect_and_read();
};
-} // namespace statsd
-} // namespace os
-} // namespace android
+} // namespace statsd
+} // namespace os
+} // namespace android
-#endif // LOGREADER_H
+#endif // LOGREADER_H