[SourceKit] Surface group names via cursor info query.

This commit is contained in:
Xi Ge
2016-02-05 16:16:49 -08:00
parent 33b4de7ff6
commit a25551e54d
14 changed files with 54 additions and 1 deletions

View File

@@ -1533,7 +1533,7 @@ Optional<BriefAndRawComment> ModuleFile::getCommentForDecl(const Decl *D) {
}
Optional<StringRef> ModuleFile::getGroupNameById(unsigned Id) {
if(GroupNamesMap || GroupNamesMap->count(Id) == 0)
if(!GroupNamesMap || GroupNamesMap->count(Id) == 0)
return None;
auto Group = (*GroupNamesMap)[Id];
if (Group.empty())