/*
- * 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 <folly/String.h>
#include <folly/portability/GTest.h>
-namespace folly { namespace symbolizer { namespace test {
+namespace folly {
+namespace symbolizer {
+namespace test {
-void foo() {
-}
+void foo() {}
TEST(Symbolizer, Single) {
Symbolizer symbolizer;
// The version of clang we use doesn't generate a `.debug_aranges` section,
// which the symbolizer needs to lookup the filename.
constexpr bool built_with_clang =
- #ifdef __clang__
+#ifdef __clang__
true;
- #else
+#else
false;
- #endif
+#endif
if (!built_with_clang) {
auto path = a.location.file.toString();
folly::StringPiece basename(path);
runElfCacheTest(symbolizer);
}
}
-
-}}} // namespaces
+} // namespace test
+} // namespace symbolizer
+} // namespace folly
// Can't use initFacebookLight since that would install its own signal handlers
// Can't use initFacebookNoSignals since we cannot depend on common