Home
last modified time | relevance | path

Searched refs:qualType (Results 1 – 25 of 70) sorted by relevance

123

/external/llvm-project/clang/test/AST/
Dast-dump-expr-json.m125 // 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 …]
Dast-dump-decl-json.m179 // 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 …]
Dast-dump-stmt-json.m49 // 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/
DMakeUniqueCheck.cpp24 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()
DUseTransparentFunctorsCheck.cpp43 loc(qualType( in registerMatchers()
47 qualType(pointsTo(qualType(isAnyCharacter()))))))), in registerMatchers()
49 templateArgument(refersToType(qualType(hasDeclaration( in registerMatchers()
DMakeSharedCheck.cpp25 return qualType(hasUnqualifiedDesugaredType( in getSmartPointerTypeMatcher()
29 qualType().bind(PointerType))))))))); in getSmartPointerTypeMatcher()
DUseBoolLiteralsCheck.cpp35 hasImplicitDestinationType(qualType(booleanType())), in registerMatchers()
44 hasImplicitDestinationType(qualType(booleanType())), in registerMatchers()
DReplaceAutoPtrCheck.cpp52 auto AutoPtrType = qualType(hasDeclaration(AutoPtrDecl)); in registerMatchers()
62 Finder->addMatcher(typeLoc(loc(qualType(AutoPtrType, in registerMatchers()
DPassByValueCheck.cpp55 return qualType(unless(anyOf(referenceType(), isConstQualified()))); in nonConstValueType()
148 hasType(qualType( in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSizeofExpressionCheck.cpp129 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()
DSignedCharMisuseCheck.cpp49 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()
DMoveForwardingReferenceCheck.cpp74 hasType(qualType(rValueReferenceType(), in registerMatchers()
77 unless(references(qualType(isConstQualified())))))) in registerMatchers()
DStringIntegerAssignmentCheck.cpp27 qualType().bind("type")))))))), in registerMatchers()
38 unless(hasType(qualType( in registerMatchers()
DStringConstructorCheck.cpp85 hasArgument(0, hasType(qualType(isInteger()))), in registerMatchers()
86 hasArgument(1, hasType(qualType(isInteger()))), in registerMatchers()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DNumberObjectConversionChecker.cpp224 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/
DRedundantSmartptrGetCheck.cpp23 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()
DUniqueptrDeleteReleaseCheck.cpp21 auto IsSusbstituted = qualType(anyOf( in registerMatchers()
26 hasTemplateArgument(1, refersToType(qualType(hasDeclaration(cxxRecordDecl( in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DDeclRefExprUtils.cpp61 qualType(anyOf(referenceType(pointee(qualType(isConstQualified()))), in constReferenceDeclRefExprs()
64 auto ConstReferenceOrValueOrReplaced = qualType(anyOf( in constReferenceDeclRefExprs()
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DImplicitConversionInLoopCheck.cpp54 hasType(qualType(references(qualType(isConstQualified())))), in registerMatchers()
DUnnecessaryCopyInitialization.cpp44 auto ConstReference = referenceType(pointee(qualType(isConstQualified()))); in registerMatchers()
65 hasType(qualType( in registerMatchers()
/external/llvm-project/clang/unittests/Tooling/
DStencilTest.cpp374 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/clang/unittests/ASTMatchers/
DASTMatchersNarrowingTest.cpp1760 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-tools-extra/clang-tidy/misc/
DThrowByValueCatchByReferenceCheck.cpp74 auto qualType = subExpr->getType(); in diagnoseThrowLocations() local
75 if (qualType->isPointerType()) { in diagnoseThrowLocations()
/external/llvm-project/clang-tools-extra/clang-tidy/cert/
DNonTrivialTypesLibcMemoryCallsCheck.cpp95 hasType(Bind ? qualType().bind("Record") : qualType())))))); in registerMatchers()
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersTraversalTest.cpp74 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 …]

123