return 0;
DC = static_cast<DeclContext*>(SS->getScopeRep());
}
- LookupResult Result = LookupDecl(&II, Decl::IDNS_Ordinary, S, DC, false);
+ LookupResult Result = LookupDecl(&II, Decl::IDNS_Ordinary, S, DC);
Decl *IIDecl = 0;
switch (Result.getKind()) {
Sema::LookupResult
Sema::LookupDecl(DeclarationName Name, unsigned NSI, Scope *S,
const DeclContext *LookupCtx,
- bool enableLazyBuiltinCreation,
bool LookInParent,
bool NamespaceNameOnly) {
LookupCriteria::NameKind Kind;
if (!StdNamespace) {
IdentifierInfo *StdIdent = &PP.getIdentifierTable().get("std");
DeclContext *Global = Context.getTranslationUnitDecl();
- Decl *Std = LookupDecl(StdIdent, Decl::IDNS_Ordinary,
- 0, Global, /*enableLazyBuiltinCreation=*/false);
+ Decl *Std = LookupDecl(StdIdent, Decl::IDNS_Ordinary, 0, Global);
StdNamespace = dyn_cast_or_null<NamespaceDecl>(Std);
}
return StdNamespace;
F != FEnd; ++F) {
if ((*F)->getDeclName()) {
Decl *PrevDecl = LookupDecl((*F)->getDeclName(), Decl::IDNS_Ordinary,
- S, Owner, false, false, false);
+ S, Owner, false, false);
if (PrevDecl && !isa<TagDecl>(PrevDecl)) {
// C++ [class.union]p2:
// The names of the members of an anonymous union shall be
if (II) {
Decl *PrevDecl
- = LookupDecl(II, Decl::IDNS_Member, S, 0, false, false, false);
+ = LookupDecl(II, Decl::IDNS_Member, S, 0, false, false);
if (PrevDecl && isDeclInScope(PrevDecl, CurContext, S)
&& !isa<TagDecl>(PrevDecl)) {
Diag(Loc, diag::err_duplicate_member) << II;
if (II) {
Decl *PrevDecl
- = LookupDecl(II, Decl::IDNS_Member, S, 0, false, false, false);
+ = LookupDecl(II, Decl::IDNS_Member, S, 0, false, false);
if (PrevDecl && isDeclInScope(PrevDecl, CurContext, S)
&& !isa<TagDecl>(PrevDecl)) {
Diag(Loc, diag::err_duplicate_member) << II;