Home
last modified time | relevance | path

Searched refs:isDerivedFrom (Results 1 – 25 of 34) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/Tooling/DumpTool/
H A DASTSrcLocProcessor.cpp36 optionally(isDerivedFrom(cxxRecordDecl().bind("derivedFrom")))) in ASTSrcLocProcessor()
156 optionally(isDerivedFrom( in CaptureMethods()
159 optionally(isDerivedFrom( in CaptureMethods()
162 isDerivedFrom(cxxRecordDecl(hasName("clang::TypeLoc")) in CaptureMethods()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DOSObjectCStyleCast.cpp101 hasTypePointingTo(cxxRecordDecl(isDerivedFrom("OSMetaClassBase"))); in checkASTCodeBody()
103 cxxRecordDecl(isDerivedFrom("OSObject")).bind(WarnRecordDecl)); in checkASTCodeBody()
H A DDeleteWithNonVirtualDtorChecker.cpp85 if (!DerivedClass->isDerivedFrom(BaseClass)) in checkPreStmt()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNarrowingTest.cpp293 cxxRecordDecl(isDerivedFrom("Y"), unless(hasName("X"))); in TEST_P()
437 anyOf(hasName("Y"), allOf(isDerivedFrom("X"), hasName("Z")))); in TEST_P()
914 DeclarationMatcher IsDerivedFromX = cxxRecordDecl(isDerivedFrom("X")); in TEST_P()
927 cxxRecordDecl(hasName("Z"), isDerivedFrom("X")); in TEST_P()
953 cxxRecordDecl(hasName("Z"), isDerivedFrom("X")); in TEST_P()
1118 isDerivedFrom("Base1"), isDerivedFrom("Base2"))))))); in TEST_P()
1143 isDerivedFrom("Base1"), isDerivedFrom("Base2"))))))); in TEST_P()
1145 cxxRecordDecl(isDerivedFrom("::ns::X")))); in TEST_P()
1147 cxxRecordDecl(isDerivedFrom("::ns::X")))); in TEST_P()
1165 EXPECT_TRUE(notMatches(Code, cxxRecordDecl(isDerivedFrom("")))); in TEST_P()
[all …]
H A DASTMatchersTraversalTest.cpp37 cxxRecordDecl(hasName("B"), isDerivedFrom(recordDecl())))); in TEST()
155 hasDeclaration(cxxRecordDecl(isDerivedFrom("A"))); in TEST()
5116 cxxRecordDecl(decl().bind("x"), isDerivedFrom("::A")), in TEST()
5121 cxxRecordDecl(decl().bind("x"), isDerivedFrom("C")), in TEST()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/objc/
H A DForbiddenSubclassingCheck.cpp54 isDerivedFrom(objcInterfaceDecl(hasAnyName(ForbiddenSuperClassNames)) in registerMatchers()
H A DSuperSelfCheck.cpp82 isDerivedFrom(hasName("NSObject")))))))) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DUndelegatedConstructorCheck.cpp45 return Derived != &Node && !Derived->isDerivedFrom(&Node); in AST_MATCHER_P()
H A DParentVirtualCallCheck.cpp55 if (RecordDeclType->getCanonicalDecl()->isDerivedFrom(&GrandParent)) in getParentsByGrandParent()
H A DVirtualNearMissCheck.cpp88 if (!DRD->isDerivedFrom(BRD, Paths)) in checkOverridingFunctionReturnType()
H A DEasilySwappableParametersCheck.cpp952 Base->isCompleteDefinition() && Derived->isDerivedFrom(Base); in isDerivedToBase()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DSlicingCheck.cpp40 cxxRecordDecl(isDerivedFrom(equalsBoundNode("BaseDecl"))) in registerMatchers()
/llvm-project-15.0.7/clang/lib/AST/
H A DCXXInheritance.cpp68 bool CXXRecordDecl::isDerivedFrom(const CXXRecordDecl *Base) const { in isDerivedFrom() function in CXXRecordDecl
71 return isDerivedFrom(Base, Paths); in isDerivedFrom()
74 bool CXXRecordDecl::isDerivedFrom(const CXXRecordDecl *Base, in isDerivedFrom() function in CXXRecordDecl
H A DVTableBuilder.cpp264 if (!DerivedRD->isDerivedFrom(BaseRD, Paths)) in ComputeBaseOffset()
1217 if (!DerivedRD->isDerivedFrom(BaseRD, Paths)) in ComputeThisAdjustmentBaseOffset()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DStore.cpp344 if (MRClass->isDerivedFrom(TargetClass, Paths)) in evalBaseToDerived()
385 if (TargetClass && SourceClass && TargetClass->isDerivedFrom(SourceClass)) in evalBaseToDerived()
H A DExprEngineCallAndReturn.cpp152 if (ActualClass->isDerivedFrom(ExpectedClass, Paths) && in adjustReturnValue()
H A DCallEvent.cpp723 assert(!RD->isDerivedFrom(MD->getParent()) && "Couldn't find known method"); in getRuntimeDefinition()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DInefficientVectorOperationCheck.cpp170 cxxRecordDecl(isDerivedFrom("::proto2::MessageLite")); in registerMatchers()
/llvm-project-15.0.7/clang/docs/
H A DLibASTMatchers.rst39 "``Bar``": ``recordDecl(hasName("Foo"), isDerivedFrom("Bar"))``.
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h3191 isDerivedFrom, in AST_POLYMORPHIC_MATCHER_P() argument
3206 isDerivedFrom,
3212 const auto M = isDerivedFrom(hasName(BaseName));
3267 const auto M = anyOf(Base, isDerivedFrom(Base));
/llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp112 REGISTER_OVERLOADED_2(isDerivedFrom); in RegistryMaps()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DSuspiciousCallArgumentCheck.cpp468 return ArgDecl->isDerivedFrom(ParamDecl); in areTypesCompatible()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DDeclCXX.h1536 bool isDerivedFrom(const CXXRecordDecl *Base) const;
1554 bool isDerivedFrom(const CXXRecordDecl *Base, CXXBasePaths &Paths) const;
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaCast.cpp985 if (SrcRD->isDerivedFrom(DestRD, BasePaths)) in DiagnoseReinterpretUpDownCast()
987 else if (DestRD->isDerivedFrom(SrcRD, BasePaths)) in DiagnoseReinterpretUpDownCast()
H A DSemaAccess.cpp949 bool isDerived = Derived->isDerivedFrom(const_cast<CXXRecordDecl*>(Base), in FindBestPath()

12