Home
last modified time | relevance | path

Searched refs:hasDeclaration (Results 1 – 25 of 112) sorted by relevance

12345

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSpuriouslyWakeUpFunctionsCheck.cpp22 hasDeclaration(varDecl(hasType(recordDecl(classTemplateSpecializationDecl( in registerMatchers()
25 0, templateArgument(refersToType(qualType(hasDeclaration( in registerMatchers()
31 allOf(hasDescendant(memberExpr(hasDeclaration(functionDecl( in registerMatchers()
38 allOf(hasDescendant(memberExpr(hasDeclaration(functionDecl( in registerMatchers()
45 allOf(hasDescendant(memberExpr(hasDeclaration(functionDecl( in registerMatchers()
H A DDanglingHandleCheck.cpp28 anyOf(cxxConstructExpr(hasDeclaration(cxxMethodDecl(ofClass(IsAHandle))), in handleFrom()
78 recordType(hasDeclaration(recordDecl(isASequence())))))))), in makeContainerMatcher()
82 recordType(hasDeclaration(recordDecl( in makeContainerMatcher()
110 recordType(hasDeclaration(cxxRecordDecl(IsAHandle))))), in registerMatchersForVariables()
120 hasDeclaration(cxxRecordDecl(IsAHandle))))), in registerMatchersForVariables()
161 recordType(hasDeclaration(recordDecl( in registerMatchersForReturn()
H A DRedundantBranchConditionCheck.cpp52 declRefExpr(hasDeclaration(ImmutableVar)).bind(OuterIfVar1Str), in registerMatchers()
55 hasEitherOperand(declRefExpr(hasDeclaration(ImmutableVar)) in registerMatchers()
59 declRefExpr(hasDeclaration( in registerMatchers()
65 declRefExpr(hasDeclaration(varDecl( in registerMatchers()
H A DStringConstructorCheck.cpp79 BoundStringLiteral, declRefExpr(hasDeclaration(anyOf( in registerMatchers()
86 hasDeclaration(cxxMethodDecl(hasName("basic_string"))), in registerMatchers()
105 hasDeclaration(cxxConstructorDecl(ofClass( in registerMatchers()
129 hasDeclaration(cxxConstructorDecl(ofClass(anyOf( in registerMatchers()
H A DStringLiteralWithEmbeddedNulCheck.cpp43 hasDeclaration(cxxMethodDecl(hasName("basic_string")))), in registerMatchers()
47 hasDeclaration(cxxMethodDecl(hasName("basic_string"))), in registerMatchers()
H A DUnhandledExceptionAtNewCheck.cpp48 recordType(hasDeclaration(cxxRecordDecl(hasName("::std::bad_alloc")))); in registerMatchers()
50 recordType(hasDeclaration(cxxRecordDecl(hasName("::std::exception")))); in registerMatchers()
H A DUnusedRaiiCheck.cpp32 anyOf(hasType(hasCanonicalType(recordType(hasDeclaration( in registerMatchers()
35 hasDeclaration(classTemplateDecl(has( in registerMatchers()
H A DUnhandledSelfAssignmentCheck.cpp53 hasDescendant(cxxConstructExpr(hasDeclaration(cxxConstructorDecl( in registerMatchers()
78 recordType(hasDeclaration(classTemplateSpecializationDecl( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/portability/
H A DStdAllocatorConstCheck.cpp21 recordType(hasDeclaration(classTemplateSpecializationDecl( in registerMatchers()
38 recordType(hasDeclaration(classTemplateSpecializationDecl( in registerMatchers()
49 hasDeclaration(namedDecl(hasContainerName))))))) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseEmplaceCheck.cpp131 hasDeclaration(functionDecl(hasName("push_back"))), in registerMatchers()
135 hasDeclaration( in registerMatchers()
146 hasDeclaration(cxxConstructorDecl(ofClass(hasAnyName(SmartPointers)))); in registerMatchers()
150 ignoringImplicit(memberExpr(hasDeclaration(fieldDecl(isBitField()))))); in registerMatchers()
164 hasDeclaration(cxxConstructorDecl(anyOf(isPrivate(), isProtected()))); in registerMatchers()
189 hasDeclaration(cxxConstructorDecl(ofClass(hasAnyName(TupleTypes)))))); in registerMatchers()
228 hasUnqualifiedDesugaredType(recordType(hasDeclaration( in registerMatchers()
H A DShrinkToFitCheck.cpp26 ShrinkableExpr.with(hasDeclaration(valueDecl().bind("ContainerDecl"))); in registerMatchers()
28 hasDeclaration(valueDecl(equalsBoundNode("ContainerDecl")))); in registerMatchers()
39 hasType(hasCanonicalType(hasDeclaration(namedDecl(hasAnyName( in registerMatchers()
H A DUseTransparentFunctorsCheck.cpp45 hasDeclaration(classTemplateSpecializationDecl( in registerMatchers()
49 templateArgument(refersToType(qualType(hasDeclaration( in registerMatchers()
60 Finder->addMatcher(cxxConstructExpr(hasDeclaration(cxxMethodDecl( in registerMatchers()
H A DMakeUniqueCheck.cpp25 recordType(hasDeclaration(classTemplateSpecializationDecl( in getSmartPointerTypeMatcher()
31 qualType(hasDeclaration(classTemplateSpecializationDecl( in getSmartPointerTypeMatcher()
H A DUseAutoCheck.cpp177 return typedefType(hasDeclaration(standardIterator())); in typedefIterator()
183 return recordType(hasDeclaration(standardIterator())); in nestedIterator()
189 auto HasIteratorDecl = hasDeclaration(namedDecl(hasStdIteratorName())); in iteratorFromUsingDeclaration()
194 hasQualifier(specifiesType(templateSpecializationType(hasDeclaration( in iteratorFromUsingDeclaration()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/
H A DStaticObjectExceptionCheck.cpp30 anyOf(hasDescendant(cxxConstructExpr(hasDeclaration( in registerMatchers()
32 hasDescendant(cxxNewExpr(hasDeclaration( in registerMatchers()
34 hasDescendant(callExpr(hasDeclaration( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DInefficientStringConcatenationCheck.cpp33 hasDeclaration(cxxRecordDecl(hasName("::std::basic_string"))))))); in registerMatchers()
49 hasDeclaration(decl().bind("lhsStrT"))) in registerMatchers()
52 hasDeclaration(decl(equalsBoundNode("lhsStrT"))))))), in registerMatchers()
H A DNoAutomaticMoveCheck.cpp33 unless(hasDeclaration(namedDecl( in registerMatchers()
51 hasDeclaration(LValueRefCtor), in registerMatchers()
H A DUnnecessaryCopyInitialization.cpp91 hasCanonicalType(recordType(hasDeclaration(namedDecl( in AST_MATCHER_FUNCTION_P()
237 unless(hasDeclaration(namedDecl( in registerMatchers()
239 unless(hasDeclaration(namedDecl( in registerMatchers()
246 hasDeclaration(cxxConstructorDecl( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DRedundantStringCStrCheck.cpp74 hasDeclaration(cxxRecordDecl(hasName("::std::basic_string")))))); in registerMatchers()
81 hasDeclaration(cxxMethodDecl(hasName("basic_string")))), in registerMatchers()
84 hasDeclaration(cxxMethodDecl(hasName("basic_string"))), in registerMatchers()
167 hasDeclaration(cxxMethodDecl(hasAnyName( in registerMatchers()
H A DRedundantStringInitCheck.cpp74 hasDeclaration(cxxMethodDecl(HasStringCtorName))), in registerMatchers()
78 hasDeclaration(cxxMethodDecl(HasStringCtorName)), in registerMatchers()
91 recordType(hasDeclaration(cxxRecordDecl(HasStringTypeName))))); in registerMatchers()
H A DDeleteNullPointerCheck.cpp28 cxxDeleteExpr(has(memberExpr(hasDeclaration( in registerMatchers()
34 memberExpr(hasDeclaration(fieldDecl().bind("deletedMemberPointer")))); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DUnconventionalAssignOperatorCheck.cpp24 anyOf(autoType(), hasDeclaration(equalsBoundNode("class")))))))); in registerMatchers()
27 anyOf(hasDeclaration(equalsBoundNode("class")), in registerMatchers()
28 referenceType(pointee(hasDeclaration(equalsBoundNode("class"))))))); in registerMatchers()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DNumberObjectConversionChecker.cpp202 typedefType(hasDeclaration(anyOf( in checkASTCodeBody()
212 recordType(hasDeclaration( in checkASTCodeBody()
225 qualType(hasDeclaration( in checkASTCodeBody()
243 qualType(typedefType(hasDeclaration( in checkASTCodeBody()
256 unless(typedefType(hasDeclaration( in checkASTCodeBody()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/zircon/
H A DTemporaryObjectsCheck.cpp32 cxxTemporaryObjectExpr(hasDeclaration(cxxConstructorDecl(hasParent( in registerMatchers()
41 hasDeclaration(cxxConstructorDecl(hasParent( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/boost/
H A DUseToStringCheck.cpp27 hasDeclaration(functionDecl( in registerMatchers()
28 returns(hasDeclaration(classTemplateSpecializationDecl( in registerMatchers()

12345