| 102 | |
| 103 | #if 1 |
| 104 | std::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 | |
| 112 | enum class DatabaseType { |