• Home
  • Raw
  • Download

Lines Matching refs:R

28 static bool isHidden(const Record &R) {  in isHidden()  argument
29 if (R.getValueAsBit("Hidden")) in isHidden()
32 if (DefInit *DI = dyn_cast<DefInit>(R.getValueInit("ParentPackage"))) in isHidden()
38 static bool isCheckerNamed(const Record *R) { in isCheckerNamed() argument
39 return !R->getValueAsString("CheckerName").empty(); in isCheckerNamed()
42 static std::string getPackageFullName(const Record *R);
44 static std::string getParentPackageFullName(const Record *R) { in getParentPackageFullName() argument
46 if (DefInit *DI = dyn_cast<DefInit>(R->getValueInit("ParentPackage"))) in getParentPackageFullName()
51 static std::string getPackageFullName(const Record *R) { in getPackageFullName() argument
52 std::string name = getParentPackageFullName(R); in getPackageFullName()
54 return name + R->getValueAsString("PackageName"); in getPackageFullName()
57 static std::string getCheckerFullName(const Record *R) { in getCheckerFullName() argument
58 std::string name = getParentPackageFullName(R); in getCheckerFullName()
59 if (isCheckerNamed(R)) { in getCheckerFullName()
61 name += R->getValueAsString("CheckerName"); in getCheckerFullName()
66 static std::string getStringValue(const Record &R, StringRef field) { in getStringValue() argument
67 if (StringInit *SI = dyn_cast<StringInit>(R.getValueInit(field))) in getStringValue()
110 Record *R = packages[i]; in EmitClangSACheckers() local
111 std::string fullName = getPackageFullName(R); in EmitClangSACheckers()
114 info.Hidden = isHidden(*R); in EmitClangSACheckers()
115 recordGroupMap[R] = &info; in EmitClangSACheckers()
122 Record *R = checkerGroups[i]; in EmitClangSACheckers() local
123 std::string name = R->getValueAsString("GroupName"); in EmitClangSACheckers()
126 recordGroupMap[R] = &info; in EmitClangSACheckers()
131 Record *R = checkers[i]; in EmitClangSACheckers() local
134 DI = dyn_cast<DefInit>(R->getValueInit("ParentPackage"))) in EmitClangSACheckers()
136 if (!isCheckerNamed(R) && !package) in EmitClangSACheckers()
137 PrintFatalError(R->getLoc(), "Checker '" + R->getName() + in EmitClangSACheckers()
140 if (isCheckerNamed(R)) { in EmitClangSACheckers()
142 std::string fullName = getCheckerFullName(R); in EmitClangSACheckers()
144 info.Hidden = R->getValueAsBit("Hidden"); in EmitClangSACheckers()
145 recordGroupMap[R] = &info; in EmitClangSACheckers()
146 info.Checkers.insert(R); in EmitClangSACheckers()
148 recordGroupMap[package]->Checkers.insert(R); in EmitClangSACheckers()
151 Record *currR = isCheckerNamed(R) ? R : package; in EmitClangSACheckers()
161 if (DefInit *DI = dyn_cast<DefInit>(R->getValueInit("Group"))) in EmitClangSACheckers()
162 recordGroupMap[DI->getDef()]->Checkers.insert(R); in EmitClangSACheckers()
185 const Record *R = I->second; in EmitClangSACheckers() local
188 OS.write_escaped(R->getValueAsString("GroupName")) << "\""; in EmitClangSACheckers()
191 groupToSortIndex[R] = sortIndex++; in EmitClangSACheckers()
204 const Record &R = *I->second; in EmitClangSACheckers() local
207 OS.write_escaped(getPackageFullName(&R)) << "\", "; in EmitClangSACheckers()
209 if (DefInit *DI = dyn_cast<DefInit>(R.getValueInit("Group"))) in EmitClangSACheckers()
214 if (isHidden(R)) in EmitClangSACheckers()
225 const Record &R = *checkers[i]; in EmitClangSACheckers() local
229 if (isCheckerNamed(&R)) in EmitClangSACheckers()
230 name = getCheckerFullName(&R); in EmitClangSACheckers()
232 OS << R.getName() << ", "; in EmitClangSACheckers()
233 OS << getStringValue(R, "DescFile") << ", "; in EmitClangSACheckers()
235 OS.write_escaped(getStringValue(R, "HelpText")) << "\", "; in EmitClangSACheckers()
237 if (DefInit *DI = dyn_cast<DefInit>(R.getValueInit("Group"))) in EmitClangSACheckers()
242 if (isHidden(R)) in EmitClangSACheckers()