Commit a60fee27 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Extract the namespace choice in FBString.h

Summary:
[Folly] Extract the namespace choice in `FBString.h`.

The funny `namespace` bits confuse `clang-format`, so let us remove the confusion.

Reviewed By: ot, Orvid

Differential Revision: D5367299

fbshipit-source-id: efca65fecc70076829c14e31a835bc91f3efb4a4
parent 94f59e26
...@@ -88,12 +88,19 @@ FOLLY_GCC_DISABLE_WARNING("-Warray-bounds") ...@@ -88,12 +88,19 @@ FOLLY_GCC_DISABLE_WARNING("-Warray-bounds")
#define throw FOLLY_FBSTRING_MAY_NOT_USE_THROW #define throw FOLLY_FBSTRING_MAY_NOT_USE_THROW
#ifdef _LIBSTDCXX_FBSTRING #ifdef _LIBSTDCXX_FBSTRING
namespace std _GLIBCXX_VISIBILITY(default) { #define FOLLY_FBSTRING_BEGIN_NAMESPACE \
_GLIBCXX_BEGIN_NAMESPACE_VERSION namespace std _GLIBCXX_VISIBILITY(default) { \
_GLIBCXX_BEGIN_NAMESPACE_VERSION
#define FOLLY_FBSTRING_END_NAMESPACE \
_GLIBCXX_END_NAMESPACE_VERSION \
} // namespace std
#else #else
namespace folly { #define FOLLY_FBSTRING_BEGIN_NAMESPACE namespace folly {
#define FOLLY_FBSTRING_END_NAMESPACE } // namespace folly
#endif #endif
FOLLY_FBSTRING_BEGIN_NAMESPACE
#if defined(__clang__) #if defined(__clang__)
# if __has_feature(address_sanitizer) # if __has_feature(address_sanitizer)
# define FBSTRING_SANITIZE_ADDRESS # define FBSTRING_SANITIZE_ADDRESS
...@@ -2840,11 +2847,9 @@ typedef basic_fbstring<char> fbstring; ...@@ -2840,11 +2847,9 @@ typedef basic_fbstring<char> fbstring;
template <class T, class R, class A, class S> template <class T, class R, class A, class S>
FOLLY_ASSUME_RELOCATABLE(basic_fbstring<T, R, A, S>); FOLLY_ASSUME_RELOCATABLE(basic_fbstring<T, R, A, S>);
#else
_GLIBCXX_END_NAMESPACE_VERSION
#endif #endif
} // namespace folly FOLLY_FBSTRING_END_NAMESPACE
#ifndef _LIBSTDCXX_FBSTRING #ifndef _LIBSTDCXX_FBSTRING
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment