• Home
  • Raw
  • Download

Lines Matching refs:DiagsInGroup

132     std::vector<const Record*> DiagsInGroup;  member
154 assert(!LHS->DiagsInGroup.empty() && !RHS->DiagsInGroup.empty()); in beforeThanCompareGroups()
155 return beforeThanCompare(LHS->DiagsInGroup.front(), in beforeThanCompareGroups()
156 RHS->DiagsInGroup.front()); in beforeThanCompareGroups()
163 std::map<std::string, GroupInfo> &DiagsInGroup) { in groupDiagnostics() argument
174 DiagsInGroup[GroupName].DiagsInGroup.push_back(R); in groupDiagnostics()
185 DiagsInGroup[std::string(Group->getValueAsString("GroupName"))]; in groupDiagnostics()
187 if (GI.DiagsInGroup.size() > 1) in groupDiagnostics()
205 I = DiagsInGroup.begin(), E = DiagsInGroup.end(); I != E; ++I, ++IDNo) in groupDiagnostics()
214 MutableArrayRef<const Record *> GroupDiags = (*I)->DiagsInGroup; in groupDiagnostics()
223 ArrayRef<const Record *> GroupDiags = (*I)->DiagsInGroup; in groupDiagnostics()
284 std::map<std::string, GroupInfo> &DiagsInGroup; member in __anon268c2c930311::InferPedantic
291 std::map<std::string, GroupInfo> &DiagsInGroup) in InferPedantic() argument
295 DiagsInGroup(DiagsInGroup) {} in InferPedantic()
355 DiagsInGroup[std::string(Group->getValueAsString("GroupName"))]; in groupInPedantic()
356 V.second = GI.SubGroups.size() + GI.DiagsInGroup.size(); in groupInPedantic()
1220 std::map<std::string, GroupInfo> DiagsInGroup; in EmitClangDiagsDefs() local
1221 groupDiagnostics(Diags, DiagGroups, DiagsInGroup); in EmitClangDiagsDefs()
1228 InferPedantic inferPedantic(DGParentMap, Diags, DiagGroups, DiagsInGroup); in EmitClangDiagsDefs()
1270 std::map<std::string, GroupInfo>::iterator I = DiagsInGroup.find( in EmitClangDiagsDefs()
1272 assert(I != DiagsInGroup.end()); in EmitClangDiagsDefs()
1276 DiagsInGroup.find("pedantic"); in EmitClangDiagsDefs()
1277 assert(I != DiagsInGroup.end() && "pedantic group not defined"); in EmitClangDiagsDefs()
1335 static void emitDiagSubGroups(std::map<std::string, GroupInfo> &DiagsInGroup, in emitDiagSubGroups() argument
1339 for (auto const &I : DiagsInGroup) { in emitDiagSubGroups()
1347 DiagsInGroup.find(SubGroup); in emitDiagSubGroups()
1348 assert(RI != DiagsInGroup.end() && "Referenced without existing?"); in emitDiagSubGroups()
1357 DiagsInGroup.find(GroupName); in emitDiagSubGroups()
1358 assert(RI != DiagsInGroup.end() && "Referenced without existing?"); in emitDiagSubGroups()
1387 static void emitDiagArrays(std::map<std::string, GroupInfo> &DiagsInGroup, in emitDiagArrays() argument
1391 for (auto const &I : DiagsInGroup) { in emitDiagArrays()
1394 const std::vector<const Record *> &V = I.second.DiagsInGroup; in emitDiagArrays()
1439 static void emitAllDiagArrays(std::map<std::string, GroupInfo> &DiagsInGroup, in emitAllDiagArrays() argument
1445 emitDiagArrays(DiagsInGroup, DiagsInPedantic, OS); in emitAllDiagArrays()
1446 emitDiagSubGroups(DiagsInGroup, GroupsInPedantic, OS); in emitAllDiagArrays()
1466 static void emitDiagTable(std::map<std::string, GroupInfo> &DiagsInGroup, in emitDiagTable() argument
1472 for (auto const &I: DiagsInGroup) in emitDiagTable()
1477 for (auto const &I: DiagsInGroup) { in emitDiagTable()
1495 const std::vector<const Record *> &V = I.second.DiagsInGroup; in emitDiagTable()
1556 std::map<std::string, GroupInfo> DiagsInGroup; in EmitClangDiagGroups() local
1557 groupDiagnostics(Diags, DiagGroups, DiagsInGroup); in EmitClangDiagGroups()
1564 InferPedantic inferPedantic(DGParentMap, Diags, DiagGroups, DiagsInGroup); in EmitClangDiagGroups()
1569 I = DiagsInGroup.begin(), in EmitClangDiagGroups()
1570 E = DiagsInGroup.end(); in EmitClangDiagGroups()
1577 emitAllDiagArrays(DiagsInGroup, DiagsInPedantic, GroupsInPedantic, GroupNames, in EmitClangDiagGroups()
1579 emitDiagTable(DiagsInGroup, DiagsInPedantic, GroupsInPedantic, GroupNames, in EmitClangDiagGroups()
1630 const std::map<std::string, GroupInfo> &DiagsInGroup) { in isRemarkGroup() argument
1634 auto &GroupInfo = DiagsInGroup.find(std::string(GroupName))->second; in isRemarkGroup()
1635 for (const Record *Diag : GroupInfo.DiagsInGroup) in isRemarkGroup()
1656 const std::map<std::string, GroupInfo> &DiagsInGroup) { in getDefaultSeverities() argument
1660 auto &GroupInfo = DiagsInGroup.find(std::string(GroupName))->second; in getDefaultSeverities()
1661 for (const Record *Diag : GroupInfo.DiagsInGroup) in getDefaultSeverities()
1714 std::map<std::string, GroupInfo> DiagsInGroup; in EmitClangDiagDocs() local
1715 groupDiagnostics(Diags, DiagGroups, DiagsInGroup); in EmitClangDiagDocs()
1721 InferPedantic inferPedantic(DGParentMap, Diags, DiagGroups, DiagsInGroup); in EmitClangDiagDocs()
1723 auto &PedDiags = DiagsInGroup["pedantic"]; in EmitClangDiagDocs()
1731 PedDiags.DiagsInGroup.insert(PedDiags.DiagsInGroup.end(), in EmitClangDiagDocs()
1743 bool IsRemarkGroup = isRemarkGroup(G, DiagsInGroup); in EmitClangDiagDocs()
1745 DiagsInGroup[std::string(G->getValueAsString("GroupName"))]; in EmitClangDiagDocs()
1746 bool IsSynonym = GroupInfo.DiagsInGroup.empty() && in EmitClangDiagDocs()
1756 auto DefaultSeverities = getDefaultSeverities(G, DiagsInGroup); in EmitClangDiagDocs()
1775 else if (GroupInfo.DiagsInGroup.empty()) in EmitClangDiagDocs()
1790 if (!GroupInfo.DiagsInGroup.empty()) { in EmitClangDiagDocs()
1792 for (const Record *D : GroupInfo.DiagsInGroup) { in EmitClangDiagDocs()
1805 else if (GroupInfo.SubGroups.empty() && GroupInfo.DiagsInGroup.empty()) in EmitClangDiagDocs()