[clang-tools-extra] r335212 - [clangd] Fix proximity signal output format. NFC
Eric Liu via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 21 02:51:28 PDT 2018
Author: ioeric
Date: Thu Jun 21 02:51:28 2018
New Revision: 335212
URL: http://llvm.org/viewvc/llvm-project?rev=335212&view=rev
Log:
[clangd] Fix proximity signal output format. NFC
Modified:
clang-tools-extra/trunk/clangd/Quality.cpp
Modified: clang-tools-extra/trunk/clangd/Quality.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/Quality.cpp?rev=335212&r1=335211&r2=335212&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/Quality.cpp (original)
+++ clang-tools-extra/trunk/clangd/Quality.cpp Thu Jun 21 02:51:28 2018
@@ -235,7 +235,7 @@ float FileProximityMatcher::uriProximity
llvm::raw_ostream &operator<<(llvm::raw_ostream &OS,
const FileProximityMatcher &M) {
OS << formatv("File proximity matcher: ");
- OS << formatv("ProximityPaths{{0}}", llvm::join(M.ProximityPaths.begin(),
+ OS << formatv("ProximityPaths[{0}]", llvm::join(M.ProximityPaths.begin(),
M.ProximityPaths.end(), ","));
return OS;
}
@@ -326,9 +326,9 @@ raw_ostream &operator<<(raw_ostream &OS,
OS << formatv("\tForbidden: {0}\n", S.Forbidden);
OS << formatv("\tSymbol URI: {0}\n", S.SymbolURI);
if (S.FileProximityMatch) {
- OS << formatv("\tIndex proximity: {0}\n",
- S.FileProximityMatch->uriProximity(S.SymbolURI))
- << " (" << *S.FileProximityMatch << ")\n";
+ OS << "\tIndex proximity: "
+ << S.FileProximityMatch->uriProximity(S.SymbolURI) << " ("
+ << *S.FileProximityMatch << ")\n";
}
OS << formatv("\tSema proximity: {0}\n", S.SemaProximityScore);
OS << formatv("\tQuery type: {0}\n", static_cast<int>(S.Query));
More information about the cfe-commits
mailing list