Skip to content

Commit 08b109d

Browse files
committed
Update type alias class names
1 parent 863046b commit 08b109d

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

cpp/autosar/src/rules/A14-5-2/NonTemplateMemberDefinedInTemplate.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ where
170170
) and
171171
// Omit using alias (cf. https://github.com/github/codeql-coding-standards/issues/739)
172172
// Exclude Using alias which refer directly to a TypeParameter
173-
not d.(UsingAliasTypedefType).getBaseType() instanceof TypeTemplateParameter
173+
not d.(TypeAliasType).getBaseType() instanceof TypeTemplateParameter
174174
select d,
175175
"Member " + d.getName() + " template class does not use any of template arguments of its $@.",
176176
d.getDeclaringType(), "declaring type"

cpp/autosar/src/rules/M3-2-3/MultipleDeclarationViolation.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ where
3636
kind = "variable"
3737
or
3838
de.getDeclaration() instanceof Type and
39-
not de.getDeclaration() instanceof UsingAliasTypedefType and
39+
not de.getDeclaration() instanceof TypeAliasType and
4040
kind = "type"
4141
) and
4242
not otherDeclaration.isDefinition() and

cpp/common/src/codingstandards/cpp/types/Uses.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private Locatable getATypeUse_i(Type type, string reason) {
9898
or
9999
// Unless it's an alias template instantiation, as they do not have correct locations (last
100100
// verified in CodeQL CLI 2.7.6)
101-
result instanceof UsingAliasTypedefType and
101+
result instanceof TypeAliasType and
102102
not exists(result.getLocation())
103103
) and
104104
(
@@ -203,7 +203,7 @@ private Locatable getATypeUse_i(Type type, string reason) {
203203
// Alias templates - alias templates and instantiations are not properly captured by the
204204
// extractor (last verified in CodeQL CLI 2.7.6). The only distinguishing factor is that
205205
// instantiations of alias templates do not have a location.
206-
exists(UsingAliasTypedefType template, UsingAliasTypedefType instantiation |
206+
exists(TypeAliasType template, TypeAliasType instantiation |
207207
// Instantiation is a "use" of the template
208208
used = instantiation and
209209
type = template and

cpp/misra/src/rules/RULE-4-1-2/UseOfDeprecatedFunctionBinderTypedefMember.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class FunctionTypeByNestedClass extends FunctionTypeWithBindings {
5858
}
5959
}
6060

61-
class DeprecatedFunctionBinderTypedefMember extends UsingAliasTypedefType {
61+
class DeprecatedFunctionBinderTypedefMember extends TypeAliasType {
6262
ClassTemplateInstantiation cti;
6363

6464
DeprecatedFunctionBinderTypedefMember() {

cpp/misra/src/rules/RULE-4-1-2/UseOfDeprecatedStdAllocatorMember.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ abstract class DeprecatedUse extends Element {
2424
abstract string getAUseDescription();
2525
}
2626

27-
class DeprecatedAllocatorUsingMember extends UsingAliasTypedefType, DeprecatedUse {
27+
class DeprecatedAllocatorUsingMember extends TypeAliasType, DeprecatedUse {
2828
ClassTemplateInstantiation cti;
2929

3030
DeprecatedAllocatorUsingMember() {

0 commit comments

Comments
 (0)