Skip to content

Commit 4349da6

Browse files
committed
Update references to deprecated classes
1 parent da5f262 commit 4349da6

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

cpp/common/src/codingstandards/cpp/Identifiers.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class InterestingIdentifiers extends Declaration {
2222
InterestingIdentifiers() {
2323
not this.isFromTemplateInstantiation(_) and
2424
not this.isFromUninstantiatedTemplate(_) and
25-
not this instanceof TemplateParameter and
25+
not this instanceof TypeTemplateParameter and
2626
not this.hasDeclaringType() and
2727
not this instanceof Operator and
2828
not this.hasName("main") and

cpp/common/src/codingstandards/cpp/deadcode/UnusedVariables.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import codingstandards.cpp.Scope
1313
*/
1414
class TemplateDependentType extends Type {
1515
TemplateDependentType() {
16-
this instanceof TemplateParameter
16+
this instanceof TypeTemplateParameter
1717
or
1818
exists(TemplateDependentType t |
1919
this.refersToDirectly(t) and

cpp/common/src/codingstandards/cpp/rules/multipleglobalormemberdeclarators/MultipleGlobalOrMemberDeclarators.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Query getQuery() { result instanceof MultipleGlobalOrMemberDeclaratorsSharedQuer
3131
class NonLocalUserDeclaration extends Declaration {
3232
NonLocalUserDeclaration() {
3333
not this instanceof StackVariable and
34-
not this instanceof TemplateParameter and
34+
not this instanceof TypeTemplateParameter and
3535
not this instanceof EnumConstant and
3636
not this instanceof TypedefType and
3737
not any(LambdaCapture lc).getField() = this and

cpp/common/src/codingstandards/cpp/rules/nonvoidfunctiondoesnotreturn/NonVoidFunctionDoesNotReturn.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ predicate functionsMissingReturnStmt(Function f, ControlFlowNode blame) {
1616
exists(Type returnType |
1717
returnType = f.getUnspecifiedType() and
1818
not returnType instanceof VoidType and
19-
not returnType instanceof TemplateParameter
19+
not returnType instanceof TypeTemplateParameter
2020
) and
2121
exists(ReturnStmt s |
2222
f.getAPredecessor() = s and

cpp/common/src/codingstandards/cpp/rules/unnecessaryexposedidentifierdeclarationshared/UnnecessaryExposedIdentifierDeclarationShared.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ class CandidateDeclaration extends Declaration {
218218
or
219219
this instanceof Type and
220220
not this instanceof ClassTemplateInstantiation and
221-
not this instanceof TemplateParameter
221+
not this instanceof TypeTemplateParameter
222222
}
223223
}
224224

cpp/common/src/codingstandards/cpp/rules/unusedtypedeclarations/UnusedTypeDeclarations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Query getQuery() { result instanceof UnusedTypeDeclarationsSharedQuery }
1414
query predicate problems(UserType ut, string message) {
1515
not isExcluded(ut, getQuery()) and
1616
message = "Type declaration " + ut.getName() + " is not used." and
17-
not ut instanceof TemplateParameter and
17+
not ut instanceof TypeTemplateParameter and
1818
not ut instanceof ProxyClass and
1919
not exists(getATypeUse(ut)) and
2020
not ut.isFromUninstantiatedTemplate(_)

0 commit comments

Comments
 (0)