Lines Matching defs:DeclRelationSet
44 class DeclRelationSet;
85 targetDecl(const DynTypedNode &, DeclRelationSet Mask,
92 llvm::SmallVector<std::pair<const NamedDecl *, DeclRelationSet>, 1>
170 explicitReferenceTargets(DynTypedNode N, DeclRelationSet Mask,
175 class DeclRelationSet {
178 DeclRelationSet(Set S) : S(S) {}
181 DeclRelationSet() = default;
182 DeclRelationSet(DeclRelation R) { S.set(static_cast<unsigned>(R)); }
185 friend DeclRelationSet operator&(DeclRelationSet L, DeclRelationSet R) {
188 friend DeclRelationSet operator|(DeclRelationSet L, DeclRelationSet R) {
191 friend bool operator==(DeclRelationSet L, DeclRelationSet R) {
194 friend DeclRelationSet operator~(DeclRelationSet R) { return ~R.S; }
195 DeclRelationSet &operator|=(DeclRelationSet Other) {
199 DeclRelationSet &operator&=(DeclRelationSet Other) {
203 bool contains(DeclRelationSet Other) const {
206 friend llvm::raw_ostream &operator<<(llvm::raw_ostream &, DeclRelationSet);
210 inline DeclRelationSet operator|(DeclRelation L, DeclRelation R) {
211 return DeclRelationSet(L) | DeclRelationSet(R);
213 inline DeclRelationSet operator&(DeclRelation L, DeclRelation R) {
214 return DeclRelationSet(L) & DeclRelationSet(R);
216 inline DeclRelationSet operator~(DeclRelation R) { return ~DeclRelationSet(R); }
217 llvm::raw_ostream &operator<<(llvm::raw_ostream &, DeclRelationSet);