49 fs::path dir = fs::path(),
51 bool closeOnDestruction =
true);
71 const fs::path&
path()
const;
104 DELETE_ON_DESTRUCTION,
108 fs::path dir = fs::path(),
109 Scope scope = Scope::DELETE_ON_DESTRUCTION);
165 template <
typename Func>
179 #define EXPECT_PCRE_MATCH(pattern_stringpiece, target_stringpiece) \ 181 ::folly::test::detail::hasPCREPatternMatch, \ 182 pattern_stringpiece, \ 184 #define EXPECT_NO_PCRE_MATCH(pattern_stringpiece, target_stringpiece) \ 186 ::folly::test::detail::hasNoPCREPatternMatch, \ 187 pattern_stringpiece, \ 206 return ".*(^|\n)E[0-9].*";
209 return ".*(^|\n)W[0-9].*";
213 return ".*(^|\n)[EW][0-9].*";
229 using ChunkCob = std::function<void(folly::StringPiece)>;
int previousCrtReportMode
bool hasNoPCREPatternMatch(StringPiece pattern, StringPiece target)
—— Concurrent Priority Queue Implementation ——
auto msvcSuppressAbortOnInvalidParams(Func func) -> decltype(func())
requires E e noexcept(noexcept(s.error(std::move(e))))
TemporaryFile(TemporaryFile &&other) noexcept
void * previousThreadLocalHandler
std::string glogErrOrWarnPattern()
size_t read(T &out, folly::io::Cursor &cursor)
TemporaryFile & operator=(TemporaryFile &&other)
TemporaryFile(StringPiece namePrefix=StringPiece(), fs::path dir=fs::path(), Scope scope=Scope::UNLINK_ON_DESTRUCTION, bool closeOnDestruction=true)
std::string glogWarningPattern()
const fs::path & path() const
std::string glogErrorPattern()
SavedState disableInvalidParameters()
const fs::path & path() const
T exchange(T &obj, U &&new_value)
std::unique_ptr< fs::path > path_
std::function< void(folly::StringPiece)> ChunkCob
void enableInvalidParameters(SavedState)
void assign(TemporaryFile &other)
Range< const char * > StringPiece
bool hasPCREPatternMatch(StringPiece pattern, StringPiece target)
void operator()(StringPiece)
const fs::path & path() const