@@ -247,11 +247,11 @@ class MatchDescendantVisitor : public DynamicRecursiveASTVisitor {
247
247
248
248
// Because we're dealing with raw pointers, let's define what we mean by that.
249
249
static bool hasPointerType (const Expr &E) {
250
- return isa<PointerType>(E.getType ().getCanonicalType ());
250
+ return isa<clang:: PointerType>(E.getType ().getCanonicalType ());
251
251
}
252
252
253
253
static bool hasArrayType (const Expr &E) {
254
- return isa<ArrayType>(E.getType ().getCanonicalType ());
254
+ return isa<clang:: ArrayType>(E.getType ().getCanonicalType ());
255
255
}
256
256
257
257
static void
@@ -968,7 +968,8 @@ static bool hasUnsafePrintfStringArg(const CallExpr &Node, ASTContext &Ctx,
968
968
if (!FirstParmTy->isPointerType ())
969
969
return false ; // possibly some user-defined printf function
970
970
971
- QualType FirstPteTy = FirstParmTy->castAs <PointerType>()->getPointeeType ();
971
+ QualType FirstPteTy =
972
+ FirstParmTy->castAs <clang::PointerType>()->getPointeeType ();
972
973
973
974
if (!Ctx.getFILEType ()
974
975
.isNull () && // `FILE *` must be in the context if it is fprintf
@@ -1052,7 +1053,8 @@ static bool hasUnsafeSnprintfBuffer(const CallExpr &Node,
1052
1053
if (!FirstParmTy->isPointerType ())
1053
1054
return false ; // Not an snprint
1054
1055
1055
- QualType FirstPteTy = FirstParmTy->castAs <PointerType>()->getPointeeType ();
1056
+ QualType FirstPteTy =
1057
+ FirstParmTy->castAs <clang::PointerType>()->getPointeeType ();
1056
1058
const Expr *Buf = Node.getArg (0 ), *Size = Node.getArg (1 );
1057
1059
1058
1060
if (FirstPteTy.isConstQualified () || !Buf->getType ()->isPointerType () ||
0 commit comments