MCPcopy Create free account
hub / github.com/ablab/spades / createTemporaryFile

Function createTemporaryFile

ext/src/llvm/Path.cpp:791–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

789}
790
791static std::error_code
792createTemporaryFile(const Twine &Model, int &ResultFD,
793 llvm::SmallVectorImpl<char> &ResultPath, FSEntity Type) {
794 SmallString<128> Storage;
795 StringRef P = Model.toNullTerminatedStringRef(Storage);
796 assert(P.find_first_of(separators(Style::native)) == StringRef::npos &&
797 "Model must be a simple filename.");
798 // Use P.begin() so that createUniqueEntity doesn't need to recreate Storage.
799 return createUniqueEntity(P.begin(), ResultFD, ResultPath, true,
800 owner_read | owner_write, Type);
801}
802
803static std::error_code
804createTemporaryFile(const Twine &Prefix, StringRef Suffix, int &ResultFD,

Callers 2

Calls 8

assertClass · 0.85
separatorsFunction · 0.85
createUniqueEntityFunction · 0.85
closeFunction · 0.50
find_first_ofMethod · 0.45
beginMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected