Home
last modified time | relevance | path

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

12345

/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
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()
DDanglingHandleCheck.cpp28 anyOf(cxxConstructExpr(hasDeclaration(cxxMethodDecl(ofClass(IsAHandle))), in handleFrom()
78 recordType(hasDeclaration(recordDecl(isASequence())))))))), in makeContainerMatcher()
82 recordType(hasDeclaration(recordDecl( in makeContainerMatcher()
112 recordType(hasDeclaration(cxxRecordDecl(IsAHandle))))), in registerMatchersForVariables()
122 hasDeclaration(cxxRecordDecl(IsAHandle))))), in registerMatchersForVariables()
163 recordType(hasDeclaration(recordDecl( in registerMatchersForReturn()
DRedundantBranchConditionCheck.cpp46 declRefExpr(hasDeclaration(ImmutableVar)), in registerMatchers()
49 hasDeclaration(ImmutableVar)))))))), in registerMatchers()
52 anyOf(declRefExpr(hasDeclaration( in registerMatchers()
57 declRefExpr(hasDeclaration(varDecl( in registerMatchers()
DStringConstructorCheck.cpp77 BoundStringLiteral, declRefExpr(hasDeclaration(anyOf( in registerMatchers()
84 hasDeclaration(cxxMethodDecl(hasName("basic_string"))), in registerMatchers()
103 hasDeclaration(cxxConstructorDecl(ofClass( in registerMatchers()
126 hasDeclaration(cxxConstructorDecl(ofClass(cxxRecordDecl( in registerMatchers()
DStringLiteralWithEmbeddedNulCheck.cpp43 hasDeclaration(cxxMethodDecl(hasName("basic_string")))), in registerMatchers()
47 hasDeclaration(cxxMethodDecl(hasName("basic_string"))), in registerMatchers()
DUnhandledSelfAssignmentCheck.cpp56 hasDescendant(cxxConstructExpr(hasDeclaration(cxxConstructorDecl( in registerMatchers()
81 recordType(hasDeclaration(classTemplateSpecializationDecl( in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DShrinkToFitCheck.cpp27 declRefExpr(hasDeclaration(valueDecl().bind("ContainerDecl"))); in registerMatchers()
34 declRefExpr(hasDeclaration(equalsBoundNode("ContainerDecl"))), in registerMatchers()
38 hasDeclaration(equalsBoundNode("ContainerDecl")))))))); in registerMatchers()
42 on(hasType(hasCanonicalType(hasDeclaration(namedDecl( in registerMatchers()
DUseEmplaceCheck.cpp52 hasDeclaration(functionDecl(hasName("push_back"))), in registerMatchers()
60 auto IsCtorOfSmartPtr = hasDeclaration(cxxConstructorDecl(ofClass(hasAnyName( in registerMatchers()
65 ignoringImplicit(memberExpr(hasDeclaration(fieldDecl(isBitField()))))); in registerMatchers()
78 auto IsPrivateCtor = hasDeclaration(cxxConstructorDecl(isPrivate())); in registerMatchers()
105 hasDeclaration(cxxConstructorDecl(ofClass(hasAnyName( in registerMatchers()
DUseTransparentFunctorsCheck.cpp45 hasDeclaration(classTemplateSpecializationDecl( in registerMatchers()
49 templateArgument(refersToType(qualType(hasDeclaration( in registerMatchers()
60 Finder->addMatcher(cxxConstructExpr(hasDeclaration(cxxMethodDecl( in registerMatchers()
DMakeUniqueCheck.cpp25 recordType(hasDeclaration(classTemplateSpecializationDecl( in getSmartPointerTypeMatcher()
31 qualType(hasDeclaration(classTemplateSpecializationDecl( in getSmartPointerTypeMatcher()
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()
/external/llvm-project/clang-tools-extra/clang-tidy/cert/
DStaticObjectExceptionCheck.cpp30 anyOf(hasDescendant(cxxConstructExpr(hasDeclaration( in registerMatchers()
32 hasDescendant(cxxNewExpr(hasDeclaration( in registerMatchers()
34 hasDescendant(callExpr(hasDeclaration( in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DInefficientStringConcatenationCheck.cpp33 hasDeclaration(cxxRecordDecl(hasName("::std::basic_string"))))))); in registerMatchers()
49 hasDeclaration(decl().bind("lhsStrT"))) in registerMatchers()
52 hasDeclaration(decl(equalsBoundNode("lhsStrT"))))))), in registerMatchers()
DNoAutomaticMoveCheck.cpp33 unless(hasDeclaration(namedDecl( in registerMatchers()
51 hasDeclaration(LValueRefCtor), in registerMatchers()
DUnnecessaryCopyInitialization.cpp68 unless(hasDeclaration(namedDecl( in registerMatchers()
70 unless(hasDeclaration(namedDecl( in registerMatchers()
77 hasDeclaration(cxxConstructorDecl( in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DUnconventionalAssignOperatorCheck.cpp23 anyOf(autoType(), hasDeclaration(equalsBoundNode("class"))))))); in registerMatchers()
26 anyOf(hasDeclaration(equalsBoundNode("class")), in registerMatchers()
27 referenceType(pointee(hasDeclaration(equalsBoundNode("class")))))); in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
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()
DContainerSizeEmptyCheck.cpp30 recordType(hasDeclaration(cxxRecordDecl(isSameOrDerivedFrom( in registerMatchers()
69 hasDeclaration(cxxConstructorDecl(isDefaultConstructor()))); in registerMatchers()
76 hasDeclaration(cxxConstructorDecl(isCopyConstructor())), in registerMatchers()
79 hasDeclaration(cxxConstructorDecl(isMoveConstructor())), in registerMatchers()
DDeleteNullPointerCheck.cpp28 cxxDeleteExpr(has(castExpr(has(memberExpr(hasDeclaration( in registerMatchers()
34 memberExpr(hasDeclaration(fieldDecl().bind("deletedMemberPointer"))))); in registerMatchers()
DRedundantStringInitCheck.cpp82 hasDeclaration(cxxMethodDecl(hasStringCtorName))), in registerMatchers()
86 hasDeclaration(cxxMethodDecl(hasStringCtorName)), in registerMatchers()
99 recordType(hasDeclaration(cxxRecordDecl(hasStringTypeName))))); in registerMatchers()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
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()
/external/llvm-project/clang-tools-extra/clang-tidy/zircon/
DTemporaryObjectsCheck.cpp32 cxxTemporaryObjectExpr(hasDeclaration(cxxConstructorDecl(hasParent( in registerMatchers()
41 hasDeclaration(cxxConstructorDecl(hasParent( in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/boost/
DUseToStringCheck.cpp27 hasDeclaration(functionDecl( in registerMatchers()
28 returns(hasDeclaration(classTemplateSpecializationDecl( in registerMatchers()
/external/clang/unittests/AST/
DASTImporterTest.cpp229 declRefExpr(hasDeclaration(varDecl(hasName("ptr"))), in TEST()
243 has(labelStmt(hasDeclaration(labelDecl(hasName("loop"))))), in TEST()
244 has(addrLabelExpr(hasDeclaration(labelDecl(hasName("loop"))))) in TEST()
265 hasDeclaration( in TEST()
/external/llvm-project/clang-tools-extra/clang-include-fixer/find-all-symbols/
DFindAllSymbols.cpp218 loc(qualType(hasDeclaration(Types.bind("use"))))), in registerMatchers()
224 loc(typedefType(hasDeclaration(Typedefs.bind("use"))))), in registerMatchers()
231 loc(templateSpecializationType(hasDeclaration( in registerMatchers()

12345