Home
last modified time | relevance | path

Searched refs:DynTypedNode (Results 1 – 11 of 11) sorted by relevance

/external/clang/include/clang/AST/
DASTTypeTraits.h208 class DynTypedNode {
212 static DynTypedNode create(const T &Node) {
270 bool operator<(const DynTypedNode &Other) const {
300 bool operator==(const DynTypedNode &Other) const {
320 bool operator!=(const DynTypedNode &Other) const {
327 static inline DynTypedNode getEmptyKey() {
328 DynTypedNode Node;
332 static inline DynTypedNode getTombstoneKey() {
333 DynTypedNode Node;
337 static unsigned getHashValue(const DynTypedNode &Val) {
[all …]
DASTContext.h457 typedef llvm::SmallVector<ast_type_traits::DynTypedNode, 2> ParentVector;
464 ast_type_traits::DynTypedNode *,
470 ast_type_traits::DynTypedNode,
472 ast_type_traits::DynTypedNode *, ParentVector *>>
478 typedef ast_type_traits::DynTypedNode DynTypedNode; typedef
479 llvm::AlignedCharArrayUnion<ast_type_traits::DynTypedNode,
480 ArrayRef<DynTypedNode>> Storage;
484 DynTypedNodeList(const DynTypedNode &N) : IsSingleNode(true) { in DynTypedNodeList()
485 new (Storage.buffer) DynTypedNode(N); in DynTypedNodeList()
487 DynTypedNodeList(ArrayRef<DynTypedNode> A) : IsSingleNode(false) { in DynTypedNodeList()
[all …]
/external/clang/unittests/AST/
DASTTypeTraitsTest.cpp116 TEST(DynTypedNode, DeclSourceRange) { in TEST() argument
117 RangeVerifier<DynTypedNode> Verifier; in TEST()
122 TEST(DynTypedNode, StmtSourceRange) { in TEST() argument
123 RangeVerifier<DynTypedNode> Verifier; in TEST()
128 TEST(DynTypedNode, TypeLocSourceRange) { in TEST() argument
129 RangeVerifier<DynTypedNode> Verifier; in TEST()
134 TEST(DynTypedNode, NNSLocSourceRange) { in TEST() argument
135 RangeVerifier<DynTypedNode> Verifier; in TEST()
141 TEST(DynTypedNode, DeclDump) { in TEST() argument
147 TEST(DynTypedNode, StmtDump) { in TEST() argument
[all …]
DMatchVerifier.h143 inline void MatchVerifier<ast_type_traits::DynTypedNode>::run( in run()
241 class DumpVerifier : public MatchVerifier<ast_type_traits::DynTypedNode> {
249 const ast_type_traits::DynTypedNode &Node) override { in verify()
268 class PrintVerifier : public MatchVerifier<ast_type_traits::DynTypedNode> {
276 const ast_type_traits::DynTypedNode &Node) override { in verify()
/external/clang/lib/ASTMatchers/
DASTMatchersInternal.cpp23 bool NotUnaryOperator(const ast_type_traits::DynTypedNode &DynNode,
27 bool AllOfVariadicOperator(const ast_type_traits::DynTypedNode &DynNode,
32 bool EachOfVariadicOperator(const ast_type_traits::DynTypedNode &DynNode,
37 bool AnyOfVariadicOperator(const ast_type_traits::DynTypedNode &DynNode,
54 const ast_type_traits::DynTypedNode &DynNode, ASTMatchFinder *Finder,
63 bool dynMatches(const ast_type_traits::DynTypedNode &DynNode, in dynMatches()
79 bool dynMatches(const ast_type_traits::DynTypedNode &DynNode, in dynMatches()
102 bool dynMatches(const ast_type_traits::DynTypedNode &, ASTMatchFinder *, in dynMatches() argument
181 bool DynTypedMatcher::matches(const ast_type_traits::DynTypedNode &DynNode, in matches()
196 const ast_type_traits::DynTypedNode &DynNode, ASTMatchFinder *Finder, in matchesNoKindCheck()
[all …]
DASTMatchFinder.cpp61 ast_type_traits::DynTypedNode Node;
113 bool findMatch(const ast_type_traits::DynTypedNode &DynNode) { in findMatch()
251 if (Matcher->matches(ast_type_traits::DynTypedNode::create(Node), Finder, in match()
259 if (Matcher->matches(ast_type_traits::DynTypedNode::create(Node), Finder, in match()
376 bool memoizedMatchesRecursively(const ast_type_traits::DynTypedNode &Node, in memoizedMatchesRecursively()
410 bool matchesRecursively(const ast_type_traits::DynTypedNode &Node, in matchesRecursively()
424 bool matchesChildOf(const ast_type_traits::DynTypedNode &Node, in matchesChildOf()
435 bool matchesDescendantOf(const ast_type_traits::DynTypedNode &Node, in matchesDescendantOf()
445 bool matchesAncestorOf(const ast_type_traits::DynTypedNode &Node, in matchesAncestorOf()
459 void match(const ast_type_traits::DynTypedNode &Node) { in match()
[all …]
/external/clang/include/clang/ASTMatchers/
DASTMatchFinder.h184 match(clang::ast_type_traits::DynTypedNode::create(Node), Context); in match()
186 void match(const clang::ast_type_traits::DynTypedNode &Node,
240 match(MatcherT Matcher, const ast_type_traits::DynTypedNode &Node,
276 match(MatcherT Matcher, const ast_type_traits::DynTypedNode &Node, in match()
288 return match(Matcher, ast_type_traits::DynTypedNode::create(Node), Context); in match()
DASTMatchersInternal.h69 void addNode(StringRef ID, const ast_type_traits::DynTypedNode& DynNode) { in addNode()
86 ast_type_traits::DynTypedNode getNode(StringRef ID) const { in getNode()
89 return ast_type_traits::DynTypedNode(); in getNode()
104 typedef std::map<std::string, ast_type_traits::DynTypedNode> IDToNodeMap;
143 void setBinding(StringRef Id, const ast_type_traits::DynTypedNode &DynNode) { in setBinding()
200 virtual bool dynMatches(const ast_type_traits::DynTypedNode &DynNode,
223 bool dynMatches(const ast_type_traits::DynTypedNode &DynNode, in dynMatches()
305 bool matches(const ast_type_traits::DynTypedNode &DynNode,
312 bool matchesNoKindCheck(const ast_type_traits::DynTypedNode &DynNode,
452 return Implementation.matches(ast_type_traits::DynTypedNode::create(Node), in matches()
[all …]
DASTMatchers.h3064 Predicate.Node = ast_type_traits::DynTypedNode::create(Node); in AST_POLYMORPHIC_MATCHER_P()
/external/clang/lib/AST/
DASTTypeTraits.cpp112 void DynTypedNode::print(llvm::raw_ostream &OS, in print()
134 void DynTypedNode::dump(llvm::raw_ostream &OS, SourceManager &SM) const { in dump()
143 SourceRange DynTypedNode::getSourceRange() const { in getSourceRange()
DASTContext.cpp800 if (Entry.second.is<ast_type_traits::DynTypedNode *>()) { in ReleaseParentMapEntries()
801 delete Entry.second.get<ast_type_traits::DynTypedNode *>(); in ReleaseParentMapEntries()
807 if (Entry.second.is<ast_type_traits::DynTypedNode *>()) { in ReleaseParentMapEntries()
808 delete Entry.second.get<ast_type_traits::DynTypedNode *>(); in ReleaseParentMapEntries()
8697 ast_type_traits::DynTypedNode getSingleDynTypedNodeFromParentMap( in getSingleDynTypedNodeFromParentMap()
8700 return ast_type_traits::DynTypedNode::create(*D); in getSingleDynTypedNodeFromParentMap()
8702 return ast_type_traits::DynTypedNode::create(*S); in getSingleDynTypedNodeFromParentMap()
8703 return *U.get<ast_type_traits::DynTypedNode *>(); in getSingleDynTypedNodeFromParentMap()
8709 ast_type_traits::DynTypedNode createDynTypedNode(const T &Node) { in createDynTypedNode()
8710 return ast_type_traits::DynTypedNode::create(*Node); in createDynTypedNode()
[all …]