Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/clang/test/AST/
H A Dast-dump-expr-json.m126 // CHECK-NEXT: "qualType": "void (void)"
164 // CHECK-NEXT: "qualType": "char *"
189 // CHECK-NEXT: "qualType": "int"
300 // CHECK-NEXT: "qualType": "I *"
337 // CHECK-NEXT: "qualType": "void"
413 // CHECK-NEXT: "qualType": "void"
419 // CHECK-NEXT: "qualType": "I"
768 // CHECK-NEXT: "qualType": "id",
806 // CHECK-NEXT: "qualType": "int"
954 // CHECK-NEXT: "qualType": "J *"
[all …]
H A Dast-dump-decl-json.m181 // CHECK-NEXT: "qualType": "int"
208 // CHECK-NEXT: "qualType": "int"
235 // CHECK-NEXT: "qualType": "int"
262 // CHECK-NEXT: "qualType": "int"
289 // CHECK-NEXT: "qualType": "int"
321 // CHECK-NEXT: "qualType": "int"
348 // CHECK-NEXT: "qualType": "int"
380 // CHECK-NEXT: "qualType": "int"
411 // CHECK-NEXT: "qualType": "SEL",
438 // CHECK-NEXT: "qualType": "int"
[all …]
H A Dast-dump-stmt-json.m50 // CHECK-NEXT: "qualType": "void (int)"
77 // CHECK-NEXT: "qualType": "int"
114 // CHECK-NEXT: "qualType": "void (^)(void)"
173 // CHECK-NEXT: "qualType": "int"
209 // CHECK-NEXT: "qualType": "int"
283 // CHECK-NEXT: "qualType": "void (int)"
310 // CHECK-NEXT: "qualType": "int"
406 // CHECK-NEXT: "qualType": "int"
442 // CHECK-NEXT: "qualType": "int"
516 // CHECK-NEXT: "qualType": "void (void)"
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A 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()
H A DUseTransparentFunctorsCheck.cpp43 loc(qualType( in registerMatchers()
47 qualType(pointsTo(qualType(isAnyCharacter()))))))), in registerMatchers()
49 templateArgument(refersToType(qualType(hasDeclaration( in registerMatchers()
H A DMakeSharedCheck.cpp25 return qualType(hasUnqualifiedDesugaredType( in getSmartPointerTypeMatcher()
29 qualType().bind(PointerType))))))))); in getSmartPointerTypeMatcher()
H A DUseBoolLiteralsCheck.cpp35 hasImplicitDestinationType(qualType(booleanType())), in registerMatchers()
44 hasImplicitDestinationType(qualType(booleanType())), in registerMatchers()
H A DReplaceAutoPtrCheck.cpp53 auto AutoPtrType = qualType(hasDeclaration(AutoPtrDecl)); in registerMatchers()
63 Finder->addMatcher(typeLoc(loc(qualType(AutoPtrType, in registerMatchers()
/llvm-project-15.0.7/clang/unittests/AST/
H A DTypePrinterTest.cpp56 auto Matcher = parmVarDecl(hasType(qualType().bind("id"))); in TEST()
72 auto Matcher = parmVarDecl(hasType(qualType().bind("id"))); in TEST()
93 varDecl(hasType(qualType().bind("id"))), in TEST()
96 varDecl(hasType(qualType().bind("id"))), in TEST()
114 has(parmVarDecl(hasType(qualType().bind("id"))))))); in TEST()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DRedundantSmartptrGetCheck.cpp24 hasType(qualType(pointsTo( in callToGet()
30 returns(qualType(pointsTo( in callToGet()
35 expr(hasType(qualType(hasCanonicalType( in callToGet()
41 returns(qualType( in callToGet()
57 returns(qualType(pointsTo(type().bind("op->Type")))))), in registerMatchersForGetArrowStart()
58 has(cxxMethodDecl(hasName("operator*"), returns(qualType(references( in registerMatchersForGetArrowStart()
H A DContainerDataPointerCheck.cpp40 qualType(hasUnqualifiedDesugaredType(recordType(hasDeclaration(Record)))); in registerMatchers()
42 qualType(hasUnqualifiedDesugaredType(templateSpecializationType( in registerMatchers()
46 qualType(anyOf(NonTemplateContainerType, TemplateContainerType)); in registerMatchers()
H A DContainerSizeEmptyCheck.cpp104 returns(qualType(isInteger(), unless(booleanType()), in registerMatchers()
113 qualType(hasUnqualifiedDesugaredType( in registerMatchers()
116 qualType(hasUnqualifiedDesugaredType(templateSpecializationType( in registerMatchers()
119 const auto ValidContainer = qualType( in registerMatchers()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A 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()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSignedCharMisuseCheck.cpp43 const auto IntTypedef = qualType(hasDeclaration(typedefDecl( in charCastExpression()
49 qualType(isAnyCharacter(), isSignedInteger(), unless(IntTypedef)))); in charCastExpression()
51 CharTypeExpr = expr(hasType(qualType( in charCastExpression()
73 qualType(isInteger(), unless(isAnyCharacter()), unless(booleanType())) in registerMatchers()
H A DMoveForwardingReferenceCheck.cpp74 hasType(qualType(rValueReferenceType(), in registerMatchers()
77 unless(references(qualType(isConstQualified())))))) in registerMatchers()
H A DStringIntegerAssignmentCheck.cpp27 qualType().bind("type")))))))), in registerMatchers()
38 unless(hasType(qualType( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DDeclRefExprUtils.cpp61 qualType(anyOf(matchers::isReferenceToConst(), in constReferenceDeclRefExprs()
64 auto ConstReferenceOrValueOrReplaced = qualType(anyOf( in constReferenceDeclRefExprs()
74 has(varDecl(hasType(qualType(matchers::isReferenceToConst())), in constReferenceDeclRefExprs()
80 hasType(qualType(matchers::isPointerToConst())), in constReferenceDeclRefExprs()
H A DMatchers.h43 return referenceType(pointee(qualType(isConstQualified()))); in AST_MATCHER_FUNCTION()
49 return pointerType(pointee(qualType(isConstQualified()))); in AST_MATCHER_FUNCTION()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/portability/
H A DStdAllocatorConstCheck.cpp23 hasTemplateArgument(0, refersToType(qualType(isConstQualified())))))); in registerMatchers()
48 0, refersToType(qualType(isConstQualified()))), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/objc/
H A DAssertEquals.cpp35 anyOf(hasLHS(hasType(qualType( in registerMatchers()
37 hasRHS(hasType(qualType( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DImplicitConversionInLoopCheck.cpp54 hasType(qualType(references(qualType(isConstQualified())))), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DUnconventionalAssignOperatorCheck.cpp26 const auto IsSelf = qualType(hasCanonicalType( in registerMatchers()
41 const auto BadSelf = qualType(hasCanonicalType(referenceType( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/
H A DNonTrivialTypesLibcMemoryCallsCheck.cpp78 hasType(Bind ? qualType().bind("Record") : qualType())))))); in registerMatchers()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DSourceCodeBuildersTest.cpp149 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("ty")))); in TEST()
160 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("ty")))); in TEST()
171 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("ty")))); in TEST()
182 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("ty")))); in TEST()
H A DStencilTest.cpp510 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type")))); in TEST_F()
520 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type")))); in TEST_F()
530 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type")))); in TEST_F()
540 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type")))); in TEST_F()
550 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type")))); in TEST_F()
560 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type")))); in TEST_F()

123