Skip to content

Commit

Permalink
Dump file ids convenience function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andersbakken committed Jan 8, 2018
1 parent 4c16e1f commit 1b6d2e5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/RTags.h
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,19 @@ template <> struct hash<CXCursor> : public unary_function<CXCursor, size_t>
};
}

template <typename Container>
inline String dumpFileIds(const Container &container)
{
String ret;
{
Log l(&ret);
for (uint32_t fileId : container) {
l << Location::path(fileId);
}
}
return ret;
}

struct SourceCache
{
Hash<Path, Map<String, String> > rtagsConfigCache;
Expand Down

0 comments on commit 1b6d2e5

Please sign in to comment.