MCPcopy Create free account
hub / github.com/Samsung/UTopia / getFullPath

Function getFullPath

include/ftg/utils/LLVMUtil.h:97–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97static inline std::string getFullPath(const llvm::DIFile &F) {
98 std::string Name = F.getFilename().str();
99 std::string Dir = F.getDirectory().str();
100 std::string Result;
101
102 if (Name.rfind(Dir, 0) == 0)
103 Result = Name;
104 else if (Dir.size() > 0 && Dir.back() == '/')
105 Result = Dir + Name;
106 else
107 Result = Dir + '/' + Name;
108
109 return util::getNormalizedPath(Result);
110}
111
112} // namespace util
113} // namespace ftg

Callers 4

getFullPathMethod · 0.85
setIndexMethod · 0.85
ofMethod · 0.85
getFullPathMethod · 0.85

Calls 3

getNormalizedPathFunction · 0.85
getDirectoryMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected