Home
last modified time | relevance | path

Searched refs:BoundNodes (Results 1 – 25 of 40) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DOwningMemoryCheck.h44 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 DOwningMemoryCheck.cpp186 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 DIntrospectionTest.cpp148 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 DASTMatchFinder.h75 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 DLoopConvertCheck.h55 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 DLoopConvertCheck.cpp709 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 DExprMutationAnalyzer.h55 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 DASTMatchersTest.h31 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 DRunLoopAutoreleaseLeakChecker.cpp80 static void emitDiagnostics(BoundNodes &Match, in emitDiagnostics()
169 for (BoundNodes Match : Matches) in checkTempObjectsInSamePool()
190 for (BoundNodes Match : Matches) in checkTempObjectsInNoPool()
H A DGCDAntipatternChecker.cpp179 static void emitDiagnostics(const BoundNodes &Nodes, in emitDiagnostics()
213 for (BoundNodes Match : Matches) in checkASTCodeBody()
218 for (BoundNodes Match : Matches) in checkASTCodeBody()
H A DOSObjectCStyleCast.cpp51 static void emitDiagnostics(const BoundNodes &Nodes, in emitDiagnostics()
115 for (BoundNodes Match : Matches) in checkASTCodeBody()
H A DObjCAutoreleaseWriteChecker.cpp111 static void emitDiagnostics(BoundNodes &Match, const Decl *D, BugReporter &BR, in emitDiagnostics()
230 for (BoundNodes Match : Matches) in checkASTCodeBody()
H A DPointerIterationChecker.cpp35 static void emitDiagnostics(const BoundNodes &Match, const Decl *D, in emitDiagnostics()
H A DPointerSortingChecker.cpp35 static void emitDiagnostics(const BoundNodes &Match, const Decl *D, in emitDiagnostics()
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp69 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 DDeclTest.cpp195 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 DMatchVerifier.h172 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 DRewriteRule.cpp197 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 DStencil.cpp29 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 DQuery.cpp85 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 DExprMutationAnalyzer.cpp135 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 DSignedBitwiseCheck.cpp77 const ast_matchers::BoundNodes &N = Result.Nodes; in check()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DLoopWidening.cpp73 for (BoundNodes Match : Matches) { in getWidenedLoopState()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DUseAfterMoveCheck.cpp267 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 DDeclRefExprUtils.cpp34 void extractNodesByIdTo(ArrayRef<BoundNodes> Matches, StringRef ID, in extractNodesByIdTo()

12