Skip to content

Commit d1c6e54

Browse files
committed
Investigate D110386 failures even further
1 parent 5b5ef2e commit d1c6e54

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

clang-tools-extra/clangd/Headers.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,15 @@ class IncludeStructure {
143143
std::vector<Inclusion> MainFileIncludes;
144144

145145
std::string dump() {
146-
return "RealPathNames: " +
147-
llvm::join(RealPathNames.begin(), RealPathNames.end(), ", ");
146+
std::string Result =
147+
"RealPathNames: " +
148+
llvm::join(RealPathNames.begin(), RealPathNames.end(), ", ");
149+
Result += "; NameToIndex: ";
150+
for (const auto &NameIndex : NameToIndex) {
151+
Result += NameIndex.first().str() + ' ' +
152+
std::to_string(static_cast<unsigned>(NameIndex.second)) + ", ";
153+
}
154+
return Result;
148155
}
149156

150157
private:

0 commit comments

Comments
 (0)