mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
CPP: Change some uses of WideCharType to Wchar_t.
This commit is contained in:
@@ -25,7 +25,7 @@ predicate stringType(Type t, Type charType) {
|
|||||||
charType = t.(ArrayType).getBaseType()
|
charType = t.(ArrayType).getBaseType()
|
||||||
) and (
|
) and (
|
||||||
charType.getUnspecifiedType() instanceof CharType or
|
charType.getUnspecifiedType() instanceof CharType or
|
||||||
charType.getUnspecifiedType() instanceof WideCharType
|
charType.getUnspecifiedType() instanceof Wchar_t
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import cpp
|
|||||||
class AnyCharPointerType extends PointerType {
|
class AnyCharPointerType extends PointerType {
|
||||||
AnyCharPointerType() {
|
AnyCharPointerType() {
|
||||||
this.getBaseType().getUnderlyingType() instanceof CharType or
|
this.getBaseType().getUnderlyingType() instanceof CharType or
|
||||||
this.getBaseType().getUnderlyingType() instanceof WideCharType
|
this.getBaseType().getUnderlyingType() instanceof Wchar_t
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ class AnyCharPointerType extends PointerType {
|
|||||||
class AnyCharArrayType extends ArrayType {
|
class AnyCharArrayType extends ArrayType {
|
||||||
AnyCharArrayType() {
|
AnyCharArrayType() {
|
||||||
this.getBaseType().getUnderlyingType() instanceof CharType or
|
this.getBaseType().getUnderlyingType() instanceof CharType or
|
||||||
this.getBaseType().getUnderlyingType() instanceof WideCharType
|
this.getBaseType().getUnderlyingType() instanceof Wchar_t
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user