Home
last modified time | relevance | path

Searched refs:DeclOrIterator (Results 1 – 2 of 2) sorted by relevance

/external/clang/lib/Sema/
DSemaCodeComplete.cpp347 llvm::PointerUnion<const NamedDecl *, const DeclIndexPair *> DeclOrIterator; member in ResultBuilder::ShadowMapEntry::iterator
367 iterator() : DeclOrIterator((NamedDecl *)nullptr), SingleDeclIndex(0) {} in iterator()
370 : DeclOrIterator(SingleDecl), SingleDeclIndex(Index) { } in iterator()
373 : DeclOrIterator(Iterator), SingleDeclIndex(0) { } in iterator()
376 if (DeclOrIterator.is<const NamedDecl *>()) { in operator ++()
377 DeclOrIterator = (NamedDecl *)nullptr; in operator ++()
382 const DeclIndexPair *I = DeclOrIterator.get<const DeclIndexPair*>(); in operator ++()
384 DeclOrIterator = I; in operator ++()
395 if (const NamedDecl *ND = DeclOrIterator.dyn_cast<const NamedDecl *>()) in operator *()
398 return *DeclOrIterator.get<const DeclIndexPair*>(); in operator *()
[all …]
/external/llvm-project/clang/lib/Sema/
DSemaCodeComplete.cpp580 llvm::PointerUnion<const NamedDecl *, const DeclIndexPair *> DeclOrIterator; member in ResultBuilder::ShadowMapEntry::iterator
598 iterator() : DeclOrIterator((NamedDecl *)nullptr), SingleDeclIndex(0) {} in iterator()
601 : DeclOrIterator(SingleDecl), SingleDeclIndex(Index) {} in iterator()
604 : DeclOrIterator(Iterator), SingleDeclIndex(0) {} in iterator()
607 if (DeclOrIterator.is<const NamedDecl *>()) { in operator ++()
608 DeclOrIterator = (NamedDecl *)nullptr; in operator ++()
613 const DeclIndexPair *I = DeclOrIterator.get<const DeclIndexPair *>(); in operator ++()
615 DeclOrIterator = I; in operator ++()
626 if (const NamedDecl *ND = DeclOrIterator.dyn_cast<const NamedDecl *>()) in operator *()
629 return *DeclOrIterator.get<const DeclIndexPair *>(); in operator *()
[all …]