[SourceKit] Add a new query to collect all group names from a module.

Input:
  Request Id: 'source.request.module.groups'
  Required field: 'key.modulename'

Output:
  Array of group names in that module, if any.
This commit is contained in:
Xi Ge
2016-02-08 17:02:36 -08:00
parent b0f94ed4b7
commit 329345077b
16 changed files with 163 additions and 1 deletions

View File

@@ -494,6 +494,11 @@ SerializedASTFile::getGroupNameForDecl(const Decl *D) const {
return File.getGroupNameForDecl(D);
}
void
SerializedASTFile::collectAllGroups(std::vector<StringRef> &Names) const {
File.collectAllGroups(Names);
};
void
SerializedASTFile::getTopLevelDecls(SmallVectorImpl<Decl*> &results) const {
File.getTopLevelDecls(results);