[clang-tools-extra] d1c6e54 - Investigate D110386 failures even further
Kirill Bobyrev via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 28 03:02:40 PDT 2021
Author: Kirill Bobyrev
Date: 2021-09-28T12:02:13+02:00
New Revision: d1c6e54930f200c40820868c086e114cee1ec693
URL: https://github.com/llvm/llvm-project/commit/d1c6e54930f200c40820868c086e114cee1ec693
DIFF: https://github.com/llvm/llvm-project/commit/d1c6e54930f200c40820868c086e114cee1ec693.diff
LOG: Investigate D110386 failures even further
Added:
Modified:
clang-tools-extra/clangd/Headers.h
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/Headers.h b/clang-tools-extra/clangd/Headers.h
index 900b779927e2..5b7ffa5de4cf 100644
--- a/clang-tools-extra/clangd/Headers.h
+++ b/clang-tools-extra/clangd/Headers.h
@@ -143,8 +143,15 @@ class IncludeStructure {
std::vector<Inclusion> MainFileIncludes;
std::string dump() {
- return "RealPathNames: " +
- llvm::join(RealPathNames.begin(), RealPathNames.end(), ", ");
+ std::string Result =
+ "RealPathNames: " +
+ llvm::join(RealPathNames.begin(), RealPathNames.end(), ", ");
+ Result += "; NameToIndex: ";
+ for (const auto &NameIndex : NameToIndex) {
+ Result += NameIndex.first().str() + ' ' +
+ std::to_string(static_cast<unsigned>(NameIndex.second)) + ", ";
+ }
+ return Result;
}
private:
More information about the cfe-commits
mailing list