/*
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2013-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <cassert>
#include <cstdlib>
#include <new>
+
#include <folly/experimental/symbolizer/StackTrace.h>
-namespace folly { namespace exception_tracer {
+namespace folly {
+namespace exception_tracer {
class StackTraceStack::Node : public StackTrace {
public:
Node* next;
private:
- Node() : next(nullptr) { }
- ~Node() { }
+ Node() : next(nullptr) {}
+ ~Node() {}
};
auto StackTraceStack::Node::allocate() -> Node* {
assert(p);
return static_cast<Node*>(p)->next;
}
-
-}} // namespaces
+} // namespace exception_tracer
+} // namespace folly