18 #include "llvm/ADT/SmallString.h"
73 return !(*
this == rhs);
78 return this->
operator bool();
80 SBFileSpec::operator bool()
const {
83 return m_opaque_up->operator bool();
95 return FileSystem::Instance().ResolveExecutableLocation(*
m_opaque_up);
102 llvm::SmallString<64> result(src_path);
103 FileSystem::Instance().Resolve(result);
104 ::snprintf(dst_path, dst_len,
"%s", result.c_str());
105 return std::min(dst_len - 1, result.size());
118 directory.GetFilename().Clear();
119 return directory.GetCString();
125 if (filename && filename[0])
134 if (directory && directory[0])
145 if (result == 0 && dst_path && dst_len > 0)