Apply clang-format to folly/experimental/exception_tracer/
[folly.git] / folly / experimental / exception_tracer / StackTrace.h
index 6c7657639021d9d67dd5450134de223511616e4c..ac100d31163cd2711b7ab4224cd40b0d54f4dee8 100644 (file)
 #include <cstddef>
 #include <cstdint>
 
-namespace folly { namespace exception_tracer {
+namespace folly {
+namespace exception_tracer {
 
 constexpr size_t kMaxFrames = 500;
 
 struct StackTrace {
-  StackTrace() : frameCount(0) { }
+  StackTrace() : frameCount(0) {}
 
   size_t frameCount;
   uintptr_t addresses[kMaxFrames];
@@ -35,6 +36,7 @@ struct StackTrace {
 // A StackTraceStack MUST be placed in zero-initialized memory.
 class StackTraceStack {
   class Node;
+
  public:
   /**
    * Push the current stack trace onto the stack.
@@ -64,7 +66,9 @@ class StackTraceStack {
   /**
    * Is the stack empty?
    */
-  bool empty() const { return !top_; }
+  bool empty() const {
+    return !top_;
+  }
 
   /**
    * Return the top stack trace, or nullptr if the stack is empty.
@@ -94,5 +98,5 @@ class StackTraceStack {
   uintptr_t guard2_;
 #endif
 };
-
-}}  // namespaces
+} // namespace exception_tracer
+} // namespace folly