clang 20.0.0git
UnresolvedSet.h
Go to the documentation of this file.
1//===- UnresolvedSet.h - Unresolved sets of declarations --------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file defines the UnresolvedSet class, which is used to store
10// collections of declarations in the AST.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_CLANG_AST_UNRESOLVEDSET_H
15#define LLVM_CLANG_AST_UNRESOLVEDSET_H
16
18#include "clang/Basic/LLVM.h"
20#include "llvm/ADT/ArrayRef.h"
21#include "llvm/ADT/SmallVector.h"
22#include "llvm/ADT/iterator.h"
23#include <cstddef>
24#include <iterator>
25
26namespace clang {
27
28class NamedDecl;
29
30/// The iterator over UnresolvedSets. Serves as both the const and
31/// non-const iterator.
32class UnresolvedSetIterator : public llvm::iterator_adaptor_base<
33 UnresolvedSetIterator, DeclAccessPair *,
34 std::random_access_iterator_tag, NamedDecl *,
35 std::ptrdiff_t, NamedDecl *, NamedDecl *> {
36 friend class ASTUnresolvedSet;
37 friend class OverloadExpr;
38 friend class UnresolvedSetImpl;
39
41 : iterator_adaptor_base(Iter) {}
43 : iterator_adaptor_base(const_cast<