Internals: Standardize template argument names. No functional change.

This commit is contained in:
Wilson Snyder
2024-11-29 20:20:38 -05:00
parent 990ccd6763
commit 0c820c3068
28 changed files with 524 additions and 521 deletions
+6 -6
View File
@@ -230,7 +230,7 @@ class ActiveNamer final : public VNVisitor {
void visit(AstNode* nodep) override { iterateChildren(nodep); }
// Specialized below for the special sensitivity classes
template <typename SenItemKind>
template <typename T_SenItemKind>
AstActive*& getSpecialActive();
public:
@@ -246,17 +246,17 @@ public:
}
// Make a new AstActive sensitive to the given special sensitivity class and return it
template <typename SenItemKind>
template <typename T_SenItemKind>
AstActive* makeSpecialActive(FileLine* const fl) {
AstSenTree* const senTreep = new AstSenTree{fl, new AstSenItem{fl, SenItemKind{}}};
AstSenTree* const senTreep = new AstSenTree{fl, new AstSenItem{fl, T_SenItemKind{}}};
return makeActive(fl, senTreep);
}
// Return an AstActive sensitive to the given special sensitivity class (possibly pre-created)
template <typename SenItemKind>
template <typename T_SenItemKind>
AstActive* getSpecialActive(FileLine* fl) {
AstActive*& cachep = getSpecialActive<SenItemKind>();
if (!cachep) cachep = makeSpecialActive<SenItemKind>(fl);
AstActive*& cachep = getSpecialActive<T_SenItemKind>();
if (!cachep) cachep = makeSpecialActive<T_SenItemKind>(fl);
return cachep;
}