/external/clang/lib/Sema/ |
D | SemaDeclObjC.cpp | 268 ObjCMethodDecl *MDecl = dyn_cast_or_null<ObjCMethodDecl>(D); in AddAnyMethodToGlobalPool() local 271 if (!MDecl) in AddAnyMethodToGlobalPool() 273 if (MDecl->isInstanceMethod()) in AddAnyMethodToGlobalPool() 274 AddInstanceMethodToGlobalPool(MDecl, true); in AddAnyMethodToGlobalPool() 276 AddFactoryMethodToGlobalPool(MDecl, true); in AddAnyMethodToGlobalPool() 302 ObjCMethodDecl *MDecl = dyn_cast_or_null<ObjCMethodDecl>(D); in ActOnStartOfObjCMethodDef() local 305 if (!MDecl) in ActOnStartOfObjCMethodDef() 309 PushDeclContext(FnBodyScope, MDecl); in ActOnStartOfObjCMethodDef() 316 MDecl->createImplicitParams(Context, MDecl->getClassInterface()); in ActOnStartOfObjCMethodDef() 318 PushOnScopeChains(MDecl->getSelfDecl(), FnBodyScope); in ActOnStartOfObjCMethodDef() [all …]
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaDeclObjC.cpp | 330 ObjCMethodDecl *MDecl = dyn_cast_or_null<ObjCMethodDecl>(D); in AddAnyMethodToGlobalPool() local 333 if (!MDecl) in AddAnyMethodToGlobalPool() 335 if (MDecl->isInstanceMethod()) in AddAnyMethodToGlobalPool() 336 AddInstanceMethodToGlobalPool(MDecl, true); in AddAnyMethodToGlobalPool() 338 AddFactoryMethodToGlobalPool(MDecl, true); in AddAnyMethodToGlobalPool() 365 ObjCMethodDecl *MDecl = dyn_cast_or_null<ObjCMethodDecl>(D); in ActOnStartOfObjCMethodDef() local 370 if (!MDecl) in ActOnStartOfObjCMethodDef() 373 QualType ResultType = MDecl->getReturnType(); in ActOnStartOfObjCMethodDef() 375 !MDecl->isInvalidDecl() && in ActOnStartOfObjCMethodDef() 376 RequireCompleteType(MDecl->getLocation(), ResultType, in ActOnStartOfObjCMethodDef() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | LoopConvertUtils.cpp | 405 const auto *MDecl = MemCall->getMethodDecl(); in isAliasDecl() local 406 if (MDecl && !isa<CXXConversionDecl>(MDecl) && in isAliasDecl() 407 MDecl->getNameAsString() == "at" && MemCall->getNumArgs() == 1) { in isAliasDecl()
|
/external/clang/lib/Parse/ |
D | ParseObjc.cpp | 1004 Decl *MDecl = ParseObjCMethodDecl(mLoc, methodType, MethodImplKind, in ParseObjCMethodPrototype() local 1008 return MDecl; in ParseObjCMethodPrototype() 2658 void Parser::StashAwayMethodOrFunctionBodyTokens(Decl *MDecl) { in StashAwayMethodOrFunctionBodyTokens() argument 2659 if (SkipFunctionBodies && (!MDecl || Actions.canSkipFunctionBody(MDecl)) && in StashAwayMethodOrFunctionBodyTokens() 2661 Actions.ActOnSkippedFunctionBody(MDecl); in StashAwayMethodOrFunctionBodyTokens() 2665 LexedMethod* LM = new LexedMethod(this, MDecl); in StashAwayMethodOrFunctionBodyTokens() 2703 Decl *MDecl = ParseObjCMethodPrototype(); in ParseObjCMethodDefinition() local 2705 PrettyDeclStackTraceEntry CrashInfo(Actions, MDecl, Tok.getLocation(), in ParseObjCMethodDefinition() 2729 if (!MDecl) { in ParseObjCMethodDefinition() 2736 Actions.AddAnyMethodToGlobalPool(MDecl); in ParseObjCMethodDefinition() [all …]
|
/external/llvm-project/clang/lib/Parse/ |
D | ParseObjc.cpp | 992 Decl *MDecl = ParseObjCMethodDecl(mLoc, methodType, MethodImplKind, in ParseObjCMethodPrototype() local 996 return MDecl; in ParseObjCMethodPrototype() 2642 void Parser::StashAwayMethodOrFunctionBodyTokens(Decl *MDecl) { in StashAwayMethodOrFunctionBodyTokens() argument 2643 if (SkipFunctionBodies && (!MDecl || Actions.canSkipFunctionBody(MDecl)) && in StashAwayMethodOrFunctionBodyTokens() 2645 Actions.ActOnSkippedFunctionBody(MDecl); in StashAwayMethodOrFunctionBodyTokens() 2649 LexedMethod* LM = new LexedMethod(this, MDecl); in StashAwayMethodOrFunctionBodyTokens() 2687 Decl *MDecl = ParseObjCMethodPrototype(); in ParseObjCMethodDefinition() local 2689 PrettyDeclStackTraceEntry CrashInfo(Actions.Context, MDecl, Tok.getLocation(), in ParseObjCMethodDefinition() 2713 if (!MDecl) { in ParseObjCMethodDefinition() 2720 Actions.AddAnyMethodToGlobalPool(MDecl); in ParseObjCMethodDefinition() [all …]
|
/external/llvm-project/clang/unittests/ASTMatchers/ |
D | ASTMatchersTraversalTest.cpp | 2442 auto MDecl = cxxMethodDecl(ofClass(cxxRecordDecl(hasName("ContainsArray"))), in TEST() local 2445 EXPECT_TRUE(matches(Code, traverse(TK_AsIs, MDecl))); in TEST() 2446 EXPECT_TRUE(matches(Code, traverse(TK_IgnoreUnlessSpelledInSource, MDecl))); in TEST() 2448 auto MDef = cxxMethodDecl(MDecl, has(compoundStmt())); in TEST() 2453 auto MBody = cxxMethodDecl(MDecl, hasBody(compoundStmt())); in TEST() 2459 auto MIsDefn = cxxMethodDecl(MDecl, isDefinition()); in TEST() 2465 auto MIsInline = cxxMethodDecl(MDecl, isInline()); in TEST() 2473 cxxMethodDecl(MDecl, hasParameter(0, parmVarDecl(hasName("other")))); in TEST()
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 1365 void StashAwayMethodOrFunctionBodyTokens(Decl *MDecl);
|
/external/llvm-project/clang/include/clang/Parse/ |
D | Parser.h | 1710 void StashAwayMethodOrFunctionBodyTokens(Decl *MDecl);
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteObjC.cpp | 273 ObjCMethodDecl *MDecl, std::string &ResultStr);
|
D | RewriteModernObjC.cpp | 325 ObjCMethodDecl *MDecl, std::string &ResultStr);
|
/external/llvm-project/clang/lib/Frontend/Rewrite/ |
D | RewriteObjC.cpp | 273 ObjCMethodDecl *MDecl, std::string &ResultStr);
|
D | RewriteModernObjC.cpp | 325 ObjCMethodDecl *MDecl, std::string &ResultStr);
|