[PATCH] D122243: [analyzer][NFC] Introduce the checker package separator character
Balázs Benics via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 19 03:15:04 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb7c988811d50: [analyzer][NFC] Introduce the checker package separator character (authored by steakhal).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122243/new/
https://reviews.llvm.org/D122243
Files:
clang/utils/TableGen/ClangSACheckersEmitter.cpp
Index: clang/utils/TableGen/ClangSACheckersEmitter.cpp
===================================================================
--- clang/utils/TableGen/ClangSACheckersEmitter.cpp
+++ clang/utils/TableGen/ClangSACheckersEmitter.cpp
@@ -24,28 +24,29 @@
// Static Analyzer Checkers Tables generation
//===----------------------------------------------------------------------===//
-static std::string getPackageFullName(const Record *R);
+static std::string getPackageFullName(const Record *R, StringRef Sep = ".");
-static std::string getParentPackageFullName(const Record *R) {
+static std::string getParentPackageFullName(const Record *R,
+ StringRef Sep = ".") {
std::string name;
if (DefInit *DI = dyn_cast<DefInit>(R->getValueInit("ParentPackage")))
- name = getPackageFullName(DI->getDef());
+ name = getPackageFullName(DI->getDef(), Sep);
return name;
}
-static std::string getPackageFullName(const Record *R) {
- std::string name = getParentPackageFullName(R);
+static std::string getPackageFullName(const Record *R, StringRef Sep) {
+ std::string name = getParentPackageFullName(R, Sep);
if (!name.empty())
- name += ".";
+ name += Sep;
assert(!R->getValueAsString("PackageName").empty());
name += R->getValueAsString("PackageName");
return name;
}
-static std::string getCheckerFullName(const Record *R) {
- std::string name = getParentPackageFullName(R);
+static std::string getCheckerFullName(const Record *R, StringRef Sep = ".") {
+ std::string name = getParentPackageFullName(R, Sep);
if (!name.empty())
- name += ".";
+ name += Sep;
assert(!R->getValueAsString("CheckerName").empty());
name += R->getValueAsString("CheckerName");
return name;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122243.423575.patch
Type: text/x-patch
Size: 1763 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220419/fb56b0bd/attachment.bin>
More information about the cfe-commits
mailing list