/external/llvm-project/clang/test/AST/ |
D | ast-dump-expr-json.m | 125 // CHECK-NEXT: "qualType": "void ()" 163 // CHECK-NEXT: "qualType": "char *" 184 // CHECK-NEXT: "qualType": "char [2]" 188 // CHECK-NEXT: "qualType": "int" 210 // CHECK-NEXT: "qualType": "char *" 231 // CHECK-NEXT: "qualType": "char [3]" 236 // CHECK-NEXT: "qualType": "typeof (^{ })" 271 // CHECK-NEXT: "qualType": "void (I *)" 299 // CHECK-NEXT: "qualType": "I *" 336 // CHECK-NEXT: "qualType": "void" [all …]
|
D | ast-dump-decl-json.m | 179 // CHECK-NEXT: "qualType": "int" 206 // CHECK-NEXT: "qualType": "int" 233 // CHECK-NEXT: "qualType": "int" 260 // CHECK-NEXT: "qualType": "int" 287 // CHECK-NEXT: "qualType": "int" 318 // CHECK-NEXT: "qualType": "int" 346 // CHECK-NEXT: "qualType": "int" 377 // CHECK-NEXT: "qualType": "int" 394 // CHECK-NEXT: "qualType": "testObjCMethodDecl *" 410 // CHECK-NEXT: "qualType": "SEL", [all …]
|
D | ast-dump-stmt-json.m | 49 // CHECK-NEXT: "qualType": "void (int)" 77 // CHECK-NEXT: "qualType": "int" 114 // CHECK-NEXT: "qualType": "void (^)(void)" 141 // CHECK-NEXT: "qualType": "void (^)(void)" 173 // CHECK-NEXT: "qualType": "int" 209 // CHECK-NEXT: "qualType": "int" 230 // CHECK-NEXT: "qualType": "const int" 238 // CHECK-NEXT: "qualType": "int" 282 // CHECK-NEXT: "qualType": "void (int)" 310 // CHECK-NEXT: "qualType": "int" [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | MakeUniqueCheck.cpp | 24 return qualType(hasUnqualifiedDesugaredType( in getSmartPointerTypeMatcher() 28 0, templateArgument(refersToType(qualType().bind(PointerType)))), in getSmartPointerTypeMatcher() 31 qualType(hasDeclaration(classTemplateSpecializationDecl( in getSmartPointerTypeMatcher() 35 0, templateArgument(refersToType(qualType( in getSmartPointerTypeMatcher()
|
D | UseTransparentFunctorsCheck.cpp | 43 loc(qualType( in registerMatchers() 47 qualType(pointsTo(qualType(isAnyCharacter()))))))), in registerMatchers() 49 templateArgument(refersToType(qualType(hasDeclaration( in registerMatchers()
|
D | MakeSharedCheck.cpp | 25 return qualType(hasUnqualifiedDesugaredType( in getSmartPointerTypeMatcher() 29 qualType().bind(PointerType))))))))); in getSmartPointerTypeMatcher()
|
D | UseBoolLiteralsCheck.cpp | 35 hasImplicitDestinationType(qualType(booleanType())), in registerMatchers() 44 hasImplicitDestinationType(qualType(booleanType())), in registerMatchers()
|
D | ReplaceAutoPtrCheck.cpp | 52 auto AutoPtrType = qualType(hasDeclaration(AutoPtrDecl)); in registerMatchers() 62 Finder->addMatcher(typeLoc(loc(qualType(AutoPtrType, in registerMatchers()
|
D | PassByValueCheck.cpp | 55 return qualType(unless(anyOf(referenceType(), isConstQualified()))); in nonConstValueType() 148 hasType(qualType( in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | SizeofExpressionCheck.cpp | 129 varDecl(isDefinition(), hasType(qualType(hasCanonicalType(CharPtrType))), in registerMatchers() 132 hasType(qualType(hasCanonicalType(CharPtrType))), in registerMatchers() 141 expr(hasType(qualType(hasCanonicalType(arrayType())))))); in registerMatchers() 147 hasType(qualType(hasCanonicalType(pointerType(pointee(arrayType())))))))); in registerMatchers() 152 hasType(qualType(hasCanonicalType(recordType()))))))); in registerMatchers() 156 hasType(qualType(hasCanonicalType(PointerToStructType))), in registerMatchers() 160 qualType(hasCanonicalType(arrayType(hasElementType(pointerType())) in registerMatchers() 163 expr(ignoringParenImpCasts(expr(hasType(qualType(hasCanonicalType( in registerMatchers() 213 const auto NumType = qualType(hasCanonicalType( in registerMatchers() 215 const auto DenomType = qualType(hasCanonicalType(type().bind("denom-type"))); in registerMatchers()
|
D | SignedCharMisuseCheck.cpp | 49 const auto IntTypedef = qualType( in charCastExpression() 55 qualType(isAnyCharacter(), isSignedInteger(), unless(IntTypedef)))); in charCastExpression() 57 CharTypeExpr = expr(hasType(qualType( in charCastExpression() 80 qualType(isInteger(), unless(isAnyCharacter()), unless(booleanType())) in registerMatchers()
|
D | MoveForwardingReferenceCheck.cpp | 74 hasType(qualType(rValueReferenceType(), in registerMatchers() 77 unless(references(qualType(isConstQualified())))))) in registerMatchers()
|
D | StringIntegerAssignmentCheck.cpp | 27 qualType().bind("type")))))))), in registerMatchers() 38 unless(hasType(qualType( in registerMatchers()
|
D | StringConstructorCheck.cpp | 85 hasArgument(0, hasType(qualType(isInteger()))), in registerMatchers() 86 hasArgument(1, hasType(qualType(isInteger()))), in registerMatchers()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | NumberObjectConversionChecker.cpp | 224 qualType(hasCanonicalType( in checkASTCodeBody() 225 qualType(hasDeclaration( in checkASTCodeBody() 243 qualType(typedefType(hasDeclaration( in checkASTCodeBody() 248 qualType(anyOf(qualType(booleanType()).bind("cpp_bool_type"), in checkASTCodeBody() 255 qualType(hasCanonicalType(isInteger()), in checkASTCodeBody() 261 qualType(anyOf(SuspiciousScalarBooleanTypeM, in checkASTCodeBody()
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | RedundantSmartptrGetCheck.cpp | 23 hasType(qualType( in callToGet() 29 returns(qualType(pointsTo(type().bind("getType"))))))) in callToGet() 42 returns(qualType(pointsTo(type().bind("op->Type")))))), in registerMatchersForGetArrowStart() 43 has(cxxMethodDecl(hasName("operator*"), returns(qualType(references( in registerMatchersForGetArrowStart()
|
D | UniqueptrDeleteReleaseCheck.cpp | 21 auto IsSusbstituted = qualType(anyOf( in registerMatchers() 26 hasTemplateArgument(1, refersToType(qualType(hasDeclaration(cxxRecordDecl( in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/utils/ |
D | DeclRefExprUtils.cpp | 61 qualType(anyOf(referenceType(pointee(qualType(isConstQualified()))), in constReferenceDeclRefExprs() 64 auto ConstReferenceOrValueOrReplaced = qualType(anyOf( in constReferenceDeclRefExprs()
|
/external/llvm-project/clang-tools-extra/clang-tidy/performance/ |
D | ImplicitConversionInLoopCheck.cpp | 54 hasType(qualType(references(qualType(isConstQualified())))), in registerMatchers()
|
D | UnnecessaryCopyInitialization.cpp | 44 auto ConstReference = referenceType(pointee(qualType(isConstQualified()))); in registerMatchers() 65 hasType(qualType( in registerMatchers()
|
/external/llvm-project/clang/unittests/Tooling/ |
D | StencilTest.cpp | 374 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type")))); in TEST_F() 384 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type")))); in TEST_F() 394 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type")))); in TEST_F() 404 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type")))); in TEST_F() 414 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type")))); in TEST_F() 424 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type")))); in TEST_F()
|
/external/llvm-project/clang-tools-extra/clang-tidy/cert/ |
D | NonTrivialTypesLibcMemoryCallsCheck.cpp | 95 hasType(Bind ? qualType().bind("Record") : qualType())))))); in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/misc/ |
D | ThrowByValueCatchByReferenceCheck.cpp | 74 auto qualType = subExpr->getType(); in diagnoseThrowLocations() local 75 if (qualType->isPointerType()) { in diagnoseThrowLocations()
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersNarrowingTest.cpp | 1760 qualType(arrayType(hasElementType(builtinType()))))); in TEST() 1763 qualType(isConstQualified(), arrayType(hasElementType(builtinType()))))); in TEST() 1766 qualType(isConstQualified(), arrayType()))); in TEST() 1770 qualType(isConstQualified(), arrayType(hasElementType(builtinType()))))); in TEST() 1773 qualType(arrayType(hasElementType(isConstQualified(), builtinType()))))); in TEST() 1776 qualType(arrayType(hasElementType(builtinType())), in TEST() 1781 EXPECT_TRUE(matches("const int a = 0;", qualType(isInteger()))); in TEST() 1806 "int i = 1;", varDecl(hasType(qualType().bind("type")), in TEST() 1808 hasType(qualType(equalsBoundNode("type")))))))); in TEST() 1810 varDecl(hasType(qualType().bind("type")), in TEST() [all …]
|
/external/llvm-project/clang/unittests/ASTMatchers/ |
D | ASTMatchersTraversalTest.cpp | 74 stmt(hasDescendant(qualType(builtinType()))))); in TEST() 88 qualType(hasDescendant(builtinType())))); in TEST() 90 qualType(hasDescendant( in TEST() 97 qualType(asString("int ***"), forEachDescendant(pointerType().bind("x"))), in TEST() 109 qualType(functionType(), forEach(qualType(isInteger()).bind("x"))), in TEST() 116 varDecl(hasName("i"), hasType(qualType(has(builtinType())))))); in TEST() 119 varDecl(hasName("i"), hasType(qualType(has(pointerType())))))); in TEST() 220 qualType(hasDeclaration(enumDecl(hasName("X"))))))))); in TEST() 236 parmVarDecl(hasType(qualType(hasDeclaration(cxxRecordDecl())))))); in TEST() 747 TypeMatcher IntType = qualType(isInteger()).bind("type"); in TEST() [all …]
|