Home
last modified time | relevance | path

Searched refs:hasBody (Results 1 – 25 of 83) sorted by relevance

1234

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DUnusedReturnValueCheck.cpp153 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 DSuspiciousSemicolonCheck.cpp25 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 DMultipleStatementMacroCheck.cpp62 whileStmt(hasBody(Inner)), forStmt(hasBody(Inner)))) in registerMatchers()
H A DSignalHandlerCheck.cpp354 if (!HandlerDecl->hasBody()) { in check()
395 if (!FD->hasBody()) { in checkFunction()
H A DUncheckedOptionalAccessCheck.cpp84 hasBody(HasOptionalCallDescendant)), in registerMatchers()
H A DInfiniteLoopCheck.cpp153 unless(hasBody(hasDescendant( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DUseAnyOfAllOfCheck.cpp56 hasBody(allOf(hasDescendant(Returns(true)), in registerMatchers()
66 hasBody(allOf(hasDescendant(Returns(false)), in registerMatchers()
H A DRedundantControlFlowCheck.cpp36 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 DNamespaceAliaser.cpp34 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 DModelConsumer.cpp36 if (func && func->hasBody()) { in HandleTopLevelDecl()
H A DAnalysisConsumer.cpp334 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 DCrossTranslationUnitTest.cpp46 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 DMutatingCopyCheck.cpp45 functionDecl(hasBody(hasDescendant(IsSelfMutatingAssignment))); in registerMatchers()
/llvm-project-15.0.7/clang/examples/CallSuperAttribute/
H A DCallSuperAttrInfo.cpp81 if (MethodDecl->isThisDeclarationADefinition() && MethodDecl->hasBody()) { in VisitCXXMethodDecl()
/llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTStructExtractor.cpp51 if (!F->hasBody()) in ExtractFromFunctionDecl()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DRunLoopAutoreleaseLeakChecker.cpp86 assert(D->hasBody()); in emitDiagnostics()
H A DIvarInvalidationChecker.cpp434 if (D && D->hasBody()) { in visit()
486 if (D && D->hasBody()) { in visit()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DCallEvent.cpp737 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 DConstCorrectnessCheck.cpp98 hasBody( in registerMatchers()
H A DUnusedParametersCheck.cpp34 Finder->addMatcher(functionDecl(isDefinition(), hasBody(stmt()), in registerMatchers()
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DTransZeroOutPropsInDealloc.cpp103 if (!D->hasBody()) in TraverseObjCMethodDecl()
H A DTransEmptyStatementsAndDealloc.cpp207 if (!MD->hasBody()) in cleanupDeallocOrFinalize()
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DByteCodeEmitter.cpp24 if (!F->isDefined(F) || (!F->hasBody() && F->willHaveBody())) in compileFunc()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DUnnecessaryValueParamCheck.cpp76 functionDecl(hasBody(stmt()), isDefinition(), unless(isImplicit()), in registerMatchers()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersTraversalTest.cpp583 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 …]

1234