Home
last modified time | relevance | path

Searched refs:CXXMethodDecl (Results 1 – 25 of 244) sorted by relevance

12345678910

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DVirtualNearMissCheck.cpp22 AST_MATCHER(CXXMethodDecl, isStatic) { return Node.isStatic(); } in AST_MATCHER() argument
24 AST_MATCHER(CXXMethodDecl, isOverloadedOperator) { in AST_MATCHER() argument
30 static bool isOverrideMethod(const CXXMethodDecl *MD) { in isOverrideMethod()
131 static bool checkParamTypes(const CXXMethodDecl *BaseMD, in checkParamTypes()
132 const CXXMethodDecl *DerivedMD) { in checkParamTypes()
150 const CXXMethodDecl *BaseMD, in checkOverrideWithoutName()
169 static bool checkOverrideByDerivedMethod(const CXXMethodDecl *BaseMD, in checkOverrideByDerivedMethod()
174 const CXXMethodDecl *OverriddenMD = *I; in checkOverrideByDerivedMethod()
183 const CXXMethodDecl *BaseMD) { in isPossibleToBeOverridden()
197 const CXXMethodDecl *BaseMD, const CXXRecordDecl *DerivedRD) { in isOverriddenByDerivedClass()
[all …]
H A DVirtualNearMissCheck.h41 bool isPossibleToBeOverridden(const CXXMethodDecl *BaseMD);
47 bool isOverriddenByDerivedClass(const CXXMethodDecl *BaseMD,
52 llvm::DenseMap<const CXXMethodDecl *, bool> PossibleMap;
57 llvm::DenseMap<std::pair<const CXXMethodDecl *, const CXXRecordDecl *>, bool>
H A DArgumentCommentCheck.cpp187 static bool looksLikeExpectMethod(const CXXMethodDecl *Expect) { in looksLikeExpectMethod()
192 static bool areMockAndExpectMethods(const CXXMethodDecl *Mock, in areMockAndExpectMethods()
193 const CXXMethodDecl *Expect) { in areMockAndExpectMethods()
207 static const CXXMethodDecl *findMockedMethod(const CXXMethodDecl *Method) { in findMockedMethod()
214 const auto *Previous = dyn_cast<CXXMethodDecl>(D); in findMockedMethod()
221 dyn_cast_or_null<CXXMethodDecl>(Method->getNextDeclInContext())) { in findMockedMethod()
233 if (const auto *Method = dyn_cast<CXXMethodDecl>(Func)) { in resolveMocks()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DConvertMemberFunctionsToStatic.cpp23 AST_MATCHER(CXXMethodDecl, isStatic) { return Node.isStatic(); } in AST_MATCHER() argument
25 AST_MATCHER(CXXMethodDecl, hasTrivialBody) { return Node.hasTrivialBody(); } in AST_MATCHER() argument
27 AST_MATCHER(CXXMethodDecl, isOverloadedOperator) { in AST_MATCHER() argument
35 AST_MATCHER(CXXMethodDecl, isTemplate) { in AST_MATCHER() argument
39 AST_MATCHER(CXXMethodDecl, isDependentContext) { in AST_MATCHER() argument
43 AST_MATCHER(CXXMethodDecl, isInsideMacroDefinition) { in AST_MATCHER() argument
52 AST_MATCHER_P(CXXMethodDecl, hasCanonicalDecl, in AST_MATCHER_P() argument
53 ast_matchers::internal::Matcher<CXXMethodDecl>, InnerMatcher) { in AST_MATCHER_P() argument
57 AST_MATCHER(CXXMethodDecl, usesThis) { in AST_MATCHER() argument
128 const auto *Definition = Result.Nodes.getNodeAs<CXXMethodDecl>("x"); in check()
[all …]
H A DMakeMemberFunctionConstCheck.cpp22 AST_MATCHER(CXXMethodDecl, isStatic) { return Node.isStatic(); } in AST_MATCHER() argument
24 AST_MATCHER(CXXMethodDecl, hasTrivialBody) { return Node.hasTrivialBody(); } in AST_MATCHER() argument
30 AST_MATCHER(CXXMethodDecl, isTemplate) { in AST_MATCHER() argument
34 AST_MATCHER(CXXMethodDecl, isDependentContext) { in AST_MATCHER() argument
38 AST_MATCHER(CXXMethodDecl, isInsideMacroDefinition) { in AST_MATCHER() argument
47 AST_MATCHER_P(CXXMethodDecl, hasCanonicalDecl, in AST_MATCHER_P() argument
48 ast_matchers::internal::Matcher<CXXMethodDecl>, InnerMatcher) { in AST_MATCHER_P() argument
210 AST_MATCHER(CXXMethodDecl, usesThisAsConst) { in AST_MATCHER() argument
241 static SourceLocation getConstInsertionPoint(const CXXMethodDecl *M) { in getConstInsertionPoint()
256 const auto *Definition = Result.Nodes.getNodeAs<CXXMethodDecl>("x"); in check()
H A DNamedParameterCheck.cpp34 (!isa<CXXMethodDecl>(Function) || in check()
35 cast<CXXMethodDecl>(Function)->size_overridden_methods() == 0)) in check()
93 const auto *M = dyn_cast<CXXMethodDecl>(P.first); in check()
/llvm-project-15.0.7/clang/examples/CallSuperAttribute/
H A DCallSuperAttrInfo.cpp38 llvm::SmallPtrSet<const CXXMethodDecl *, 16> MarkedMethods;
39 bool isMarkedAsCallSuper(const CXXMethodDecl *D) { in isMarkedAsCallSuper()
48 llvm::SmallPtrSet<const CXXMethodDecl *, 16> &MustCalledMethods) in MethodUsageVisitor() argument
51 const CXXMethodDecl *Callee = nullptr; in VisitCallExpr()
67 llvm::SmallPtrSet<const CXXMethodDecl *, 16> &MustCalledMethods;
80 bool VisitCXXMethodDecl(CXXMethodDecl *MethodDecl) { in VisitCXXMethodDecl()
83 llvm::SmallPtrSet<const CXXMethodDecl *, 16> OverriddenMarkedMethods; in VisitCXXMethodDecl()
129 const CXXMethodDecl *MethodDecl) { in lateDiagAppertainsToDecl()
169 const auto *TheMethod = dyn_cast_or_null<CXXMethodDecl>(D); in diagAppertainsToDecl()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTLambda.h27 inline bool isLambdaCallOperator(const CXXMethodDecl *MD) { in isLambdaCallOperator()
34 if (!DC || !isa<CXXMethodDecl>(DC)) return false; in isLambdaCallOperator()
35 return isLambdaCallOperator(cast<CXXMethodDecl>(DC)); in isLambdaCallOperator()
38 inline bool isGenericLambdaCallOperatorSpecialization(const CXXMethodDecl *MD) { in isGenericLambdaCallOperatorSpecialization()
64 dyn_cast<CXXMethodDecl>(DC)); in isGenericLambdaCallOperatorSpecialization()
69 const auto *MD = dyn_cast<CXXMethodDecl>(DC); in isGenericLambdaCallOperatorOrStaticInvokerSpecialization()
H A DMangleNumberingContext.h23 class CXXMethodDecl; variable
35 virtual unsigned getManglingNumber(const CXXMethodDecl *CallOperator) = 0;
57 virtual unsigned getDeviceManglingNumber(const CXXMethodDecl *) { return 0; } in getDeviceManglingNumber() argument
H A DVTableBuilder.h71 static VTableComponent MakeFunction(const CXXMethodDecl *MD) { in MakeFunction()
89 static VTableComponent MakeUnusedFunction(const CXXMethodDecl *MD) { in MakeUnusedFunction()
124 const CXXMethodDecl *getFunctionDecl() const { in getFunctionDecl()
128 return reinterpret_cast<CXXMethodDecl *>(getPointer()); in getFunctionDecl()
136 const CXXMethodDecl *getUnusedFunctionDecl() const { in getUnusedFunctionDecl()
138 return reinterpret_cast<CXXMethodDecl *>(getPointer()); in getUnusedFunctionDecl()
330 typedef llvm::DenseMap<const CXXMethodDecl *, ThunkInfoVectorTy> ThunksMapTy;
343 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()->getCanonicalDecl()); in getThunkInfo()
360 static bool hasVtableSlot(const CXXMethodDecl *MD);
H A DDeclCXX.h65 class CXXMethodDecl; variable
1981 class CXXMethodDecl : public FunctionDecl {
1998 static CXXMethodDecl *
2026 CXXMethodDecl *CD = const_cast<CXXMethodDecl*>(this)->getCanonicalDecl(); in isVirtual()
2073 CXXMethodDecl *getMostRecentDecl() { in getMostRecentDecl()
2074 return cast<CXXMethodDecl>( in getMostRecentDecl()
2161 CXXMethodDecl *
2165 const CXXMethodDecl *
2168 return const_cast<CXXMethodDecl *>(this)
2176 const CXXMethodDecl *
[all …]
/llvm-project-15.0.7/clang/lib/AST/
H A DVTableBuilder.cpp67 const CXXMethodDecl *Method;
1114 const CXXMethodDecl *MD = MI.first; in ComputeThisAdjustments()
1164 const CXXMethodDecl *MD; in ComputeThisAdjustments()
1335 const CXXMethodDecl *MD, in OverridesIndirectMethodInBases()
1416 static const CXXMethodDecl *
1561 [](const CXXMethodDecl *A, const CXXMethodDecl *B) { in AddMethods()
1683 const CXXMethodDecl *MD = I.first; in LayoutPrimaryAndSecondaryVTables()
2109 const CXXMethodDecl *MD = I.first; in dumpLayout()
2550 const CXXMethodDecl *MD = I.first; in LayoutVFTable()
2994 const CXXMethodDecl *OverriddenMD = in AddMethods()
[all …]
H A DDeclCXX.cpp1554 return cast<CXXMethodDecl>(ND); in getInvokerAsMethod()
2111 void CXXMethodDecl::anchor() {} in anchor()
2134 CXXMethodDecl *
2165 CXXMethodDecl *
2200 CXXMethodDecl *
2207 return new (C, RD) CXXMethodDecl( in Create()
2212 CXXMethodDecl *CXXMethodDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
2219 CXXMethodDecl *CXXMethodDecl::getDevirtualizedMethod(const Expr *Base, in getDevirtualizedMethod()
2423 void CXXMethodDecl::addOverriddenMethod(const CXXMethodDecl *MD) { in addOverriddenMethod()
2432 CXXMethodDecl::method_iterator CXXMethodDecl::begin_overridden_methods() const { in begin_overridden_methods()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseNodiscardCheck.cpp33 AST_MATCHER(CXXMethodDecl, isOverloadedOperator) { in AST_MATCHER() argument
37 AST_MATCHER(CXXMethodDecl, isConversionOperator) { in AST_MATCHER() argument
42 AST_MATCHER(CXXMethodDecl, hasClassMutableFields) { in AST_MATCHER() argument
51 AST_MATCHER(CXXMethodDecl, hasTemplateReturnType) { in AST_MATCHER() argument
57 AST_MATCHER(CXXMethodDecl, isDefinitionOrInline) { in AST_MATCHER() argument
113 const auto *MatchedDecl = Result.Nodes.getNodeAs<CXXMethodDecl>("no_discard"); in check()
/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/Models/
H A DChromiumCheckModel.cpp19 bool isCheckLikeMethod(llvm::SmallDenseSet<const CXXMethodDecl *> &CheckDecls, in isCheckLikeMethod()
20 const CXXMethodDecl &D) { in isCheckLikeMethod()
45 for (const CXXMethodDecl *M : ParentClass->methods()) in isCheckLikeMethod()
55 if (const auto *M = dyn_cast<CXXMethodDecl>(Call->getDirectCallee())) { in transfer()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DUnconventionalAssignOperatorCheck.cpp77 const auto *Method = Result.Nodes.getNodeAs<CXXMethodDecl>("method"); in check()
78 if (Result.Nodes.getNodeAs<CXXMethodDecl>("ReturnType")) in check()
81 if (Result.Nodes.getNodeAs<CXXMethodDecl>("ArgumentType")) in check()
85 if (Result.Nodes.getNodeAs<CXXMethodDecl>("cv")) in check()
H A DNewDeleteOverloadsCheck.cpp101 bool hasCorrespondingOverloadInBaseClass(const CXXMethodDecl *MD, in hasCorrespondingOverloadInBaseClass()
156 if (const auto *MD = dyn_cast<CXXMethodDecl>(FD)) in check()
194 const auto *MD = dyn_cast<CXXMethodDecl>(Overload); in onEndOfTranslationUnit()
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFindingAction.cpp71 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(FoundDecl)) { in Find()
107 bool VisitCXXMethodDecl(const CXXMethodDecl *MethodDecl) { in VisitCXXMethodDecl()
179 void addUSRsOfOverridenFunctions(const CXXMethodDecl *MethodDecl) { in addUSRsOfOverridenFunctions()
186 void addUSRsOfInstantiatedMethods(const CXXMethodDecl *MethodDecl) { in addUSRsOfInstantiatedMethods()
200 bool checkIfOverriddenFunctionAscends(const CXXMethodDecl *MethodDecl) { in checkIfOverriddenFunctionAscends()
212 std::vector<const CXXMethodDecl *> OverriddenMethods;
213 std::vector<const CXXMethodDecl *> InstantiatedMethods;
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DVirtualCallChecker.cpp79 const CXXMethodDecl *MD = in REGISTER_MAP_WITH_PROGRAMSTATE()
80 dyn_cast_or_null<CXXMethodDecl>(CE->getDirectCallee()); in REGISTER_MAP_WITH_PROGRAMSTATE()
104 const CXXMethodDecl *MD = dyn_cast_or_null<CXXMethodDecl>(Call.getDecl()); in checkPreCall()
168 const auto *MD = dyn_cast_or_null<CXXMethodDecl>(LCtx->getDecl()); in registerCtorDtorCallInState()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenTypes.h34 class CXXMethodDecl; variable
124 CanQualType DeriveThisType(const CXXRecordDecl *RD, const CXXMethodDecl *MD);
235 const CGFunctionInfo &arrangeCXXMethodDeclaration(const CXXMethodDecl *MD);
249 arrangeUnprototypedMustTailThunk(const CXXMethodDecl *MD);
254 const CXXMethodDecl *MD);
H A DCGVTables.cpp162 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in GenerateVarArgsThunk()
248 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in StartThunk()
299 assert(isa<CXXMethodDecl>(CurGD.getDecl()) && in EmitCallAndReturnForThunk()
301 const CXXMethodDecl *MD = cast<CXXMethodDecl>(CurGD.getDecl()); in EmitCallAndReturnForThunk()
497 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in maybeEmitThunk()
608 const CXXMethodDecl *MD = in EmitThunks()
609 cast<CXXMethodDecl>(GD.getDecl())->getCanonicalDecl(); in EmitThunks()
739 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in addVTableComponent()
779 if (cast<CXXMethodDecl>(GD.getDecl())->isPure()) { in addVTableComponent()
786 } else if (cast<CXXMethodDecl>(GD.getDecl())->isDeleted()) { in addVTableComponent()
[all …]
/llvm-project-15.0.7/clang/test/SemaOpenCLCXX/
H A Daddress-space-lambda.clcpp4 //CHECK: CXXMethodDecl {{.*}} constexpr operator() 'int (__private int){{.*}} const __generic'
9 //CHECK: CXXMethodDecl {{.*}} constexpr operator() 'void () {{.*}}const __generic'
14 //CHECK: CXXMethodDecl {{.*}} constexpr operator() 'void () {{.*}}const __generic'
29 //CHECK: |-CXXMethodDecl {{.*}} constexpr operator() 'void () {{.*}}const __private'
32 //CHECK: |-CXXMethodDecl {{.*}} constexpr operator() 'void () {{.*}}const __generic'
57 //CHECK: |-CXXMethodDecl {{.*}} constexpr operator() 'void () {{.*}}const __constant'
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DPtrTypesSemantics.h16 class CXXMethodDecl; variable
53 llvm::Optional<bool> isGetterOfRefCounted(const clang::CXXMethodDecl *Method);
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DThunk.h23 class CXXMethodDecl; variable
168 const CXXMethodDecl *Method;
173 const CXXMethodDecl *Method = nullptr)
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DSpecialMembers.cpp29 const CXXMethodDecl *Copy = nullptr; in buildSpecialMemberDeclarations()
30 const CXXMethodDecl *Move = nullptr; in buildSpecialMemberDeclarations()
49 auto PrintMember = [&](const CXXMethodDecl *D, const char *MemberPattern, in buildSpecialMemberDeclarations()

12345678910