| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | UnusedReturnValueCheck.cpp | 153 auto UnusedInWhileStmt = whileStmt(hasBody(MatchedCallExpr)); in registerMatchers() 154 auto UnusedInDoStmt = doStmt(hasBody(MatchedCallExpr)); in registerMatchers() 157 hasIncrement(MatchedCallExpr), hasBody(MatchedCallExpr))); in registerMatchers() 158 auto UnusedInRangeForStmt = cxxForRangeStmt(hasBody(MatchedCallExpr)); in registerMatchers()
|
| H A D | SuspiciousSemicolonCheck.cpp | 25 forStmt(hasBody(nullStmt().bind("semi"))), in registerMatchers() 26 cxxForRangeStmt(hasBody(nullStmt().bind("semi"))), in registerMatchers() 27 whileStmt(hasBody(nullStmt().bind("semi"))))) in registerMatchers()
|
| H A D | MultipleStatementMacroCheck.cpp | 62 whileStmt(hasBody(Inner)), forStmt(hasBody(Inner)))) in registerMatchers()
|
| H A D | SignalHandlerCheck.cpp | 354 if (!HandlerDecl->hasBody()) { in check() 395 if (!FD->hasBody()) { in checkFunction()
|
| H A D | UncheckedOptionalAccessCheck.cpp | 84 hasBody(HasOptionalCallDescendant)), in registerMatchers()
|
| H A D | InfiniteLoopCheck.cpp | 153 unless(hasBody(hasDescendant( in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | UseAnyOfAllOfCheck.cpp | 56 hasBody(allOf(hasDescendant(Returns(true)), in registerMatchers() 66 hasBody(allOf(hasDescendant(Returns(false)), in registerMatchers()
|
| H A D | RedundantControlFlowCheck.cpp | 36 hasBody(compoundStmt(hasAnySubstatement( in registerMatchers() 42 .with(hasBody(compoundStmt(hasAnySubstatement(continueStmt())) in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | NamespaceAliaser.cpp | 34 if (!Function || !Function->hasBody()) in createAlias() 46 "alias", match(functionDecl(hasBody(compoundStmt(has(declStmt( in createAlias()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Frontend/ |
| H A D | ModelConsumer.cpp | 36 if (func && func->hasBody()) { in HandleTopLevelDecl()
|
| H A D | AnalysisConsumer.cpp | 334 if (BD->hasBody()) { in VisitBlockDecl() 479 FD->hasBody(FD); in HandleDeclsCallGraph() 661 if (!D->hasBody()) in HandleCode()
|
| /llvm-project-15.0.7/clang/unittests/CrossTU/ |
| H A D | CrossTranslationUnitTest.cpp | 46 bool OrigFDHasBody = FD->hasBody(); in HandleTranslationUnit() 91 *Success = NewFD && NewFD->hasBody() && !OrigFDHasBody; in HandleTranslationUnit()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/ |
| H A D | MutatingCopyCheck.cpp | 45 functionDecl(hasBody(hasDescendant(IsSelfMutatingAssignment))); in registerMatchers()
|
| /llvm-project-15.0.7/clang/examples/CallSuperAttribute/ |
| H A D | CallSuperAttrInfo.cpp | 81 if (MethodDecl->isThisDeclarationADefinition() && MethodDecl->hasBody()) { in VisitCXXMethodDecl()
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ASTStructExtractor.cpp | 51 if (!F->hasBody()) in ExtractFromFunctionDecl()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | RunLoopAutoreleaseLeakChecker.cpp | 86 assert(D->hasBody()); in emitDiagnostics()
|
| H A D | IvarInvalidationChecker.cpp | 434 if (D && D->hasBody()) { in visit() 486 if (D && D->hasBody()) { in visit()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | CallEvent.cpp | 737 if (!Result->hasBody(Definition)) { in getRuntimeDefinition() 1126 if (!MD->hasBody()) { in findDefiningRedecl() 1128 if (I->hasBody()) in findDefiningRedecl() 1289 if (MD && !MD->hasBody()) in getRuntimeDefinition()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | ConstCorrectnessCheck.cpp | 98 hasBody( in registerMatchers()
|
| H A D | UnusedParametersCheck.cpp | 34 Finder->addMatcher(functionDecl(isDefinition(), hasBody(stmt()), in registerMatchers()
|
| /llvm-project-15.0.7/clang/lib/ARCMigrate/ |
| H A D | TransZeroOutPropsInDealloc.cpp | 103 if (!D->hasBody()) in TraverseObjCMethodDecl()
|
| H A D | TransEmptyStatementsAndDealloc.cpp | 207 if (!MD->hasBody()) in cleanupDeallocOrFinalize()
|
| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | ByteCodeEmitter.cpp | 24 if (!F->isDefined(F) || (!F->hasBody() && F->willHaveBody())) in compileFunc()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | UnnecessaryValueParamCheck.cpp | 76 functionDecl(hasBody(stmt()), isDefinition(), unless(isImplicit()), in registerMatchers()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersTraversalTest.cpp | 583 hasBody(compoundStmt()), in TEST() 588 hasBody(compoundStmt()), in TEST() 593 hasBody(compoundStmt()), in TEST() 2053 forStmt(hasBody(compoundStmt())))); in TEST() 2055 forStmt(hasBody(compoundStmt())))); in TEST() 2057 whileStmt(hasBody(compoundStmt())))); in TEST() 2059 doStmt(hasBody(compoundStmt())))); in TEST() 2069 functionDecl(hasBody(compoundStmt())).bind("func"), in TEST() 2073 cxxMethodDecl(hasBody(compoundStmt())).bind("met"), in TEST() 2081 cxxDestructorDecl(hasBody(compoundStmt())).bind("dtr"), in TEST() [all …]
|