#include "llvm/Testing/Support/SupportHelpers.h" #include "llvm/ADT/SmallString.h" #include "llvm/ADT/Twine.h" #include "llvm/Support/Error.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Path.h" #include "gtest/gtest.h" usingnamespacellvm; usingnamespacellvm::unittest; static std::pair<bool, SmallString<128>> findSrcDirMap(StringRef Argv0) { … } SmallString<128> llvm::unittest::getInputFileDirectory(const char *Argv0) { … }