#else // !_LIBSTDCXX_FBSTRING
+#include <folly/CppAttributes.h>
#include <folly/Portability.h>
// libc++ doesn't provide this header, nor does msvc
if (RefCounted::refs(ml_.data_) > 1) {
return ml_.size_;
}
- default: {}
+ break;
+ default:
+ break;
}
return ml_.capacity();
}
switch ((byteSize + wordWidth - 1) / wordWidth) { // Number of words.
case 3:
ml_.capacity_ = reinterpret_cast<const size_t*>(data)[2];
+ FOLLY_FALLTHROUGH;
case 2:
ml_.size_ = reinterpret_cast<const size_t*>(data)[1];
+ FOLLY_FALLTHROUGH;
case 1:
ml_.data_ = *reinterpret_cast<Char**>(const_cast<Char*>(data));
+ FOLLY_FALLTHROUGH;
case 0:
break;
}
#include <boost/lexical_cast.hpp>
#include <folly/Benchmark.h>
+#include <folly/CppAttributes.h>
#include <folly/Foreach.h>
#include <array>
switch (*start) {
case '-':
positive = false;
+ FOLLY_FALLTHROUGH;
case '+':
++start;
+ FOLLY_FALLTHROUGH;
default:
- ;
+ break;
}
while (start < end && *start >= '0' && *start <= '9') {