DeclContextInternals.h (207619) | DeclContextInternals.h (208600) |
---|---|
1//===-- DeclContextInternals.h - DeclContext Representation -----*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 142 unchanged lines hidden (view full) --- 151 assert(std::find(Vec.begin(), Vec.end(), reinterpret_cast<uintptr_t>(D)) 152 == Vec.end() && "list still contains decl"); 153 } 154 155 /// getLookupResult - Return an array of all the decls that this list 156 /// represents. 157 DeclContext::lookup_result getLookupResult(ASTContext &Context) { 158 if (isNull()) | 1//===-- DeclContextInternals.h - DeclContext Representation -----*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 142 unchanged lines hidden (view full) --- 151 assert(std::find(Vec.begin(), Vec.end(), reinterpret_cast<uintptr_t>(D)) 152 == Vec.end() && "list still contains decl"); 153 } 154 155 /// getLookupResult - Return an array of all the decls that this list 156 /// represents. 157 DeclContext::lookup_result getLookupResult(ASTContext &Context) { 158 if (isNull()) |
159 return DeclContext::lookup_result(0, 0); | 159 return DeclContext::lookup_result(DeclContext::lookup_iterator(0), 160 DeclContext::lookup_iterator(0)); |
160 161 if (hasDeclarationIDs()) 162 materializeDecls(Context); 163 164 // If we have a single NamedDecl, return it. 165 if (getAsDecl()) { 166 assert(!isNull() && "Empty list isn't allowed"); 167 --- 121 unchanged lines hidden --- | 161 162 if (hasDeclarationIDs()) 163 materializeDecls(Context); 164 165 // If we have a single NamedDecl, return it. 166 if (getAsDecl()) { 167 assert(!isNull() && "Empty list isn't allowed"); 168 --- 121 unchanged lines hidden --- |