| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | OwningMemoryCheck.h | 44 bool handleDeletion(const ast_matchers::BoundNodes &Nodes); 45 bool handleLegacyConsumers(const ast_matchers::BoundNodes &Nodes); 46 bool handleExpectedOwner(const ast_matchers::BoundNodes &Nodes); 47 bool handleAssignmentAndInit(const ast_matchers::BoundNodes &Nodes); 48 bool handleAssignmentFromNewOwner(const ast_matchers::BoundNodes &Nodes); 49 bool handleReturnValues(const ast_matchers::BoundNodes &Nodes); 50 bool handleOwnerMembers(const ast_matchers::BoundNodes &Nodes);
|
| H A D | OwningMemoryCheck.cpp | 186 bool OwningMemoryCheck::handleDeletion(const BoundNodes &Nodes) { in handleDeletion() 211 bool OwningMemoryCheck::handleLegacyConsumers(const BoundNodes &Nodes) { in handleLegacyConsumers() 227 bool OwningMemoryCheck::handleExpectedOwner(const BoundNodes &Nodes) { in handleExpectedOwner() 242 bool OwningMemoryCheck::handleAssignmentAndInit(const BoundNodes &Nodes) { in handleAssignmentAndInit() 284 bool OwningMemoryCheck::handleAssignmentFromNewOwner(const BoundNodes &Nodes) { in handleAssignmentFromNewOwner() 330 bool OwningMemoryCheck::handleReturnValues(const BoundNodes &Nodes) { in handleReturnValues() 352 bool OwningMemoryCheck::handleOwnerMembers(const BoundNodes &Nodes) { in handleOwnerMembers()
|
| /llvm-project-15.0.7/clang/unittests/Introspection/ |
| H A D | IntrospectionTest.cpp | 148 EXPECT_EQ(BoundNodes.size(), 1u); in TEST() 201 EXPECT_EQ(BoundNodes.size(), 1u); in TEST() 375 EXPECT_EQ(BoundNodes.size(), 1u); in TEST() 437 EXPECT_EQ(BoundNodes.size(), 1u); in TEST() 492 EXPECT_EQ(BoundNodes.size(), 1u); in TEST() 529 EXPECT_EQ(BoundNodes.size(), 1u); in TEST() 565 EXPECT_EQ(BoundNodes.size(), 1u); in TEST() 602 EXPECT_EQ(BoundNodes.size(), 1u); in TEST() 640 EXPECT_EQ(BoundNodes.size(), 1u); in TEST() 1141 auto BoundNodes = in TEST() local [all …]
|
| /llvm-project-15.0.7/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchFinder.h | 75 MatchResult(const BoundNodes &Nodes, clang::ASTContext *Context); 80 const BoundNodes Nodes; 252 SmallVector<BoundNodes, 1> 263 SmallVector<BoundNodes, 1> match(MatcherT Matcher, ASTContext &Context); 278 for (const BoundNodes &N : Results) { in selectFirst() 296 SmallVector<BoundNodes, 1> Nodes; 311 SmallVector<BoundNodes, 1> 317 SmallVector<BoundNodes, 1> 326 inline SmallVector<BoundNodes, 1> 337 SmallVector<BoundNodes, 1> matchDynamic(internal::DynTypedMatcher Matcher, in matchDynamic() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | LoopConvertCheck.h | 55 const ast_matchers::BoundNodes &Nodes, 61 const ast_matchers::BoundNodes &Nodes, 65 const ast_matchers::BoundNodes &Nodes, 71 bool isConvertible(ASTContext *Context, const ast_matchers::BoundNodes &Nodes,
|
| H A D | LoopConvertCheck.cpp | 709 const BoundNodes &Nodes, in getArrayLoopQualifiers() 744 const BoundNodes &Nodes, in getIteratorLoopQualifiers() 785 ASTContext *Context, const BoundNodes &Nodes, const ForStmt *Loop, in determineRangeDescriptor() 801 const ast_matchers::BoundNodes &Nodes, in isConvertible() 843 const BoundNodes &Nodes = Result.Nodes; in check()
|
| /llvm-project-15.0.7/clang/include/clang/Analysis/Analyses/ |
| H A D | ExprMutationAnalyzer.h | 55 const Stmt *findExprMutation(ArrayRef<ast_matchers::BoundNodes> Matches); 56 const Stmt *findDeclMutation(ArrayRef<ast_matchers::BoundNodes> Matches); 58 findExprPointeeMutation(ArrayRef<ast_matchers::BoundNodes> Matches); 60 findDeclPointeeMutation(ArrayRef<ast_matchers::BoundNodes> Matches);
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersTest.h | 31 virtual bool run(const BoundNodes *BoundNodes) = 0; 32 virtual bool run(const BoundNodes *BoundNodes, ASTContext *Context) = 0; 390 bool run(const BoundNodes *Nodes) override { in run() 391 const BoundNodes::IDToNodeMap &M = Nodes->getMap(); in run() 401 BoundNodes::IDToNodeMap::const_iterator I = M.find(Id); in run() 413 bool run(const BoundNodes *Nodes, ASTContext *Context) override { in run()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | RunLoopAutoreleaseLeakChecker.cpp | 80 static void emitDiagnostics(BoundNodes &Match, in emitDiagnostics() 169 for (BoundNodes Match : Matches) in checkTempObjectsInSamePool() 190 for (BoundNodes Match : Matches) in checkTempObjectsInNoPool()
|
| H A D | GCDAntipatternChecker.cpp | 179 static void emitDiagnostics(const BoundNodes &Nodes, in emitDiagnostics() 213 for (BoundNodes Match : Matches) in checkASTCodeBody() 218 for (BoundNodes Match : Matches) in checkASTCodeBody()
|
| H A D | OSObjectCStyleCast.cpp | 51 static void emitDiagnostics(const BoundNodes &Nodes, in emitDiagnostics() 115 for (BoundNodes Match : Matches) in checkASTCodeBody()
|
| H A D | ObjCAutoreleaseWriteChecker.cpp | 111 static void emitDiagnostics(BoundNodes &Match, const Decl *D, BugReporter &BR, in emitDiagnostics() 230 for (BoundNodes Match : Matches) in checkASTCodeBody()
|
| H A D | PointerIterationChecker.cpp | 35 static void emitDiagnostics(const BoundNodes &Match, const Decl *D, in emitDiagnostics()
|
| H A D | PointerSortingChecker.cpp | 35 static void emitDiagnostics(const BoundNodes &Match, const Decl *D, in emitDiagnostics()
|
| /llvm-project-15.0.7/clang/lib/ASTMatchers/ |
| H A D | ASTMatchFinder.cpp | 69 BoundNodesTreeBuilder BoundNodes; member 74 return std::tie(Traversal, Type, MatcherID, Node, BoundNodes) < in operator <() 76 Other.BoundNodes); in operator <() 606 Key.BoundNodes = *Builder; in memoizedMatchesRecursively() 807 void SetBoundNodes(const BoundNodes &BN) { in SetBoundNodes() 817 const BoundNodes *getBoundNodes() const { in getBoundNodes() 843 const BoundNodes *BNodes = nullptr; 927 if (const BoundNodes *Nodes = State.getBoundNodes()) { in print() 930 const BoundNodes::IDToNodeMap &Map = Nodes->getMap(); in print() 1164 Keys.back().BoundNodes = *Builder; in matchesAnyAncestorOf() [all …]
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | DeclTest.cpp | 195 llvm::SmallVector<ast_matchers::BoundNodes, 2> Funcs = in TEST() 204 llvm::SmallVector<ast_matchers::BoundNodes, 1> ClassTemplates = in TEST() 206 llvm::SmallVector<ast_matchers::BoundNodes, 1> ClassSpecializations = in TEST()
|
| H A D | MatchVerifier.h | 172 BoundNodes::IDToNodeMap M = Result.Nodes.getMap(); in run() 173 BoundNodes::IDToNodeMap::const_iterator I = M.find(""); in run()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Transformer/ |
| H A D | RewriteRule.cpp | 197 ast_matchers::BoundNodes Nodes; 201 explicit BindingsMatcher(ast_matchers::BoundNodes Nodes, in BindingsMatcher() 244 forEachDescendantDynamically(ast_matchers::BoundNodes Nodes, in forEachDescendantDynamically() 257 void registerMatchers(const ast_matchers::BoundNodes &Nodes, in registerMatchers() 333 const ast_matchers::BoundNodes::IDToNodeMap &NodesMap = in rewriteDescendants()
|
| H A D | Stencil.cpp | 29 using ast_matchers::BoundNodes; 36 static llvm::Expected<DynTypedNode> getNode(const BoundNodes &Nodes, in getNode() 334 const BoundNodes::IDToNodeMap &NodeMap = match.Nodes.getMap(); in eval()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-query/ |
| H A D | Query.cpp | 85 std::vector<BoundNodes> &Bindings; 86 CollectBoundNodes(std::vector<BoundNodes> &Bindings) : Bindings(Bindings) {} in CollectBoundNodes() 183 std::vector<BoundNodes> Matches; in run()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | ExprMutationAnalyzer.cpp | 135 const Stmt *tryEachMatch(ArrayRef<ast_matchers::BoundNodes> Matches, in tryEachMatch() 239 ExprMutationAnalyzer::findExprMutation(ArrayRef<BoundNodes> Matches) { in findExprMutation() 244 ExprMutationAnalyzer::findDeclMutation(ArrayRef<BoundNodes> Matches) { in findDeclMutation() 249 ArrayRef<ast_matchers::BoundNodes> Matches) { in findExprPointeeMutation() 255 ArrayRef<ast_matchers::BoundNodes> Matches) { in findDeclPointeeMutation()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/hicpp/ |
| H A D | SignedBitwiseCheck.cpp | 77 const ast_matchers::BoundNodes &N = Result.Nodes; in check()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | LoopWidening.cpp | 73 for (BoundNodes Match : Matches) { in getWidenedLoopState()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | UseAfterMoveCheck.cpp | 267 DeclRefs](const ArrayRef<BoundNodes> Matches) { in getDeclRefs() 362 SmallVector<BoundNodes, 1> Matches = in getReinits()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | DeclRefExprUtils.cpp | 34 void extractNodesByIdTo(ArrayRef<BoundNodes> Matches, StringRef ID, in extractNodesByIdTo()
|