MCPcopy Create free account
hub / github.com/KDAB/codebrowser / locationToString

Function locationToString

generator/main.cpp:104–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102
103#if 1
104std::string locationToString(clang::SourceLocation loc, clang::SourceManager& sm) {
105 clang::PresumedLoc fixed = sm.getPresumedLoc(loc);
106 if (!fixed.isValid())
107 return "???";
108 return (llvm::Twine(fixed.getFilename()) + ":" + llvm::Twine(fixed.getLine())).str();
109}
110#endif
111
112enum class DatabaseType {

Callers 1

HandleDiagnosticMethod · 0.85

Calls 1

TwineClass · 0.85

Tested by

no test coverage detected