reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/include/clang/ASTMatchers/ASTMatchers.h
 5672 extern const AstTypeMatcher<PointerType> pointerType;

References

tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
  463   REGISTER_MATCHER(pointerType);
tools/clang/lib/Analysis/ExprMutationAnalyzer.cpp
   65       pointerType(pointee(unless(isConstQualified()))));
tools/clang/lib/StaticAnalyzer/Checkers/NumberObjectConversionChecker.cpp
  211               pointerType(pointee(hasCanonicalType(
tools/clang/lib/StaticAnalyzer/Checkers/OSObjectCStyleCast.cpp
   59     -> decltype(hasType(pointerType())) {
   60   return hasType(pointerType(pointee(hasDeclaration(DeclM))));
tools/clang/lib/StaticAnalyzer/Checkers/ObjCAutoreleaseWriteChecker.cpp
  154       parmVarDecl(hasType(hasCanonicalType(pointerType(
tools/clang/lib/StaticAnalyzer/Checkers/PointerIterationChecker.cpp
   72   auto PointerTypeM = varDecl(hasType(hasCanonicalType(pointerType())));
tools/clang/lib/StaticAnalyzer/Checkers/PointerSortingChecker.cpp
   85                                     pointsTo(hasCanonicalType(pointerType()))
tools/clang/tools/extra/clang-tidy/android/CloexecCreatCheck.cpp
   20   auto CharPointerType = hasType(pointerType(pointee(isAnyCharacter())));
tools/clang/tools/extra/clang-tidy/android/CloexecFopenCheck.cpp
   22   auto CharPointerType = hasType(pointerType(pointee(isAnyCharacter())));
tools/clang/tools/extra/clang-tidy/android/CloexecMemfdCreateCheck.cpp
   18   auto CharPointerType = hasType(pointerType(pointee(isAnyCharacter())));
tools/clang/tools/extra/clang-tidy/android/CloexecOpenCheck.cpp
   20   auto CharPointerType = hasType(pointerType(pointee(isAnyCharacter())));
tools/clang/tools/extra/clang-tidy/bugprone/BoolPointerImplicitConversionCheck.cpp
   24                      expr(hasType(pointerType(pointee(booleanType()))),
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp
  569       qualType(hasCanonicalType(pointerType(pointee(isAnyCharacter())))));
tools/clang/tools/extra/clang-tidy/bugprone/SizeofExpressionCheck.cpp
  123   const auto CharPtrType = pointerType(pointee(isAnyCharacter()));
  142       hasType(qualType(hasCanonicalType(pointerType(pointee(arrayType()))))))));
  149       pointerType(pointee(recordType()))));
  183   const auto ElemPtrType = pointerType(pointee(type().bind("elem-ptr-type")));
  227       hasLHS(expr(hasType(hasUnqualifiedDesugaredType(pointerType(pointee(
  229       hasRHS(expr(hasType(hasUnqualifiedDesugaredType(pointerType(pointee(
tools/clang/tools/extra/clang-tidy/bugprone/StringConstructorCheck.cpp
   48   const auto CharPtrType = type(anyOf(pointerType(), arrayType()));
   57       hasType(pointerType(pointee(isAnyCharacter(), isConstQualified()))),
tools/clang/tools/extra/clang-tidy/bugprone/UnhandledSelfAssignmentCheck.cpp
   90         has(fieldDecl(anyOf(hasType(pointerType()), hasType(SmartPointerType),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/OwningMemoryCheck.cpp
   91                                    hasType(pointerType()))))
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsPointerArithmeticCheck.cpp
   24       hasType(pointerType()), hasType(autoType(hasDeducedType(pointerType()))),
   24       hasType(pointerType()), hasType(autoType(hasDeducedType(pointerType()))),
   25       hasType(decltypeType(hasUnderlyingType(pointerType()))));
   39                     hasType(pointerType()))
   48                     hasType(decayedType(hasDecayedType(pointerType())))))))
tools/clang/tools/extra/clang-tidy/misc/MisplacedConstCheck.cpp
   23                     typedefDecl(hasType(pointerType(unless(pointee(
tools/clang/tools/extra/clang-tidy/modernize/RedundantVoidArgCheck.cpp
   58       anyOf(hasType(pointerType(PointerToFunctionType)),
tools/clang/tools/extra/clang-tidy/modernize/UseAutoCheck.cpp
  264                  hasType(pointerType(
tools/clang/tools/extra/clang-tidy/modernize/UseNoexceptCheck.cpp
   53       parmVarDecl(anyOf(hasType(pointerType(pointee(parenType(innerType(
tools/clang/tools/extra/clang-tidy/performance/ForRangeCopyCheck.cpp
   41           unless(anyOf(hasCanonicalType(anyOf(referenceType(), pointerType())),
tools/clang/tools/extra/clang-tidy/performance/TypePromotionInMathFnCheck.cpp
  107                    hasParameter(1, parmVarDecl(hasType(pointerType(
  130               hasParameter(2, parmVarDecl(hasType(pointerType(
tools/clang/tools/extra/clang-tidy/readability/SimplifySubscriptExprCheck.cpp
   44                   anyOf(TypesMatcher, pointerType(pointee(TypesMatcher)))))),
tools/clang/tools/extra/clang-tidy/utils/DeclRefExprUtils.cpp
   62                      unless(anyOf(referenceType(), pointerType()))));
   94                      unless(anyOf(referenceType(), pointerType()))));
tools/clang/unittests/AST/SourceLocationTest.cpp
  729                               parmVarDecl(hasType(pointerType(pointee(
  734                               parmVarDecl(hasType(pointerType(pointee(
tools/clang/unittests/ASTMatchers/ASTMatchersInternalTest.cpp
  171       "x", match(pointerType().bind("x"), AST->getASTContext()));
tools/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp
 2198   EXPECT_TRUE(matches("void f(int i[]);", valueDecl(hasType(decayedType(hasDecayedType(pointerType()))))));
tools/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
 1282       notMatches("void (*fp)(void);", pointerType(pointee(functionType()))));
 1284                       pointerType(pointee(ignoringParens(functionType())))));
 1323     loc(pointerType(pointee(qualType())))));
 1326     loc(pointerType(pointee(pointerType())))));
 1326     loc(pointerType(pointee(pointerType())))));
 1329     loc(qualType(isConstQualified(), pointerType()))));
 1337                                            hasType(pointerType()))));
 1351                                         hasType(pointerType()))));
 1361                                            hasType(pointerType()))));
 1375                                            hasType(pointerType()))));
 1423                       loc(pointerType())));
 1425                       loc(pointerType())));
 1428     loc(pointerType(pointee(builtinType())))));
 1431     pointerType(pointee(builtinType()))));
tools/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
   91                         pointerType(pointee(builtinType()))))));
   97     qualType(asString("int ***"), forEachDescendant(pointerType().bind("x"))),
  119     varDecl(hasName("i"), hasType(qualType(has(pointerType()))))));
 2309   EXPECT_TRUE(matches("int *a;", pointerType(pointee(builtinType()))));
 2312                       loc(pointerType(pointee(builtinType())))));
 2316     pointerType(pointee(isConstQualified(), builtinType()))));
 2319     pointerType(pointee(isConstQualified(), builtinType()))));