Skip to content

Commit 4db019f

Browse files
committed
[FOLD] more cleanups
1 parent b56b73d commit 4db019f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

clang/lib/Sema/SemaCXXScopeSpec.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -685,16 +685,6 @@ bool Sema::BuildCXXNestedNameSpecifier(Scope *S, NestedNameSpecInfo &IdInfo,
685685
if (ErrorRecoveryLookup)
686686
return true;
687687

688-
#if 0
689-
// If we didn't find anything during our lookup, try again with
690-
// ordinary name lookup, which can help us produce better error
691-
// messages.
692-
if (Found.empty()) {
693-
Found.clear(LookupOrdinaryName);
694-
LookupName(Found, S);
695-
}
696-
#endif
697-
698688
// In Microsoft mode, if we are within a templated function and we can't
699689
// resolve Identifier, then extend the SS with Identifier. This will have
700690
// the effect of resolving Identifier during template instantiation.
@@ -735,7 +725,6 @@ bool Sema::BuildCXXNestedNameSpecifier(Scope *S, NestedNameSpecInfo &IdInfo,
735725
}
736726
}
737727

738-
#if 1
739728
if (!Found.empty()) {
740729
if (TypeDecl *TD = Found.getAsSingle<TypeDecl>()) {
741730
Diag(IdInfo.IdentifierLoc, diag::err_expected_class_or_namespace)
@@ -757,7 +746,6 @@ bool Sema::BuildCXXNestedNameSpecifier(Scope *S, NestedNameSpecInfo &IdInfo,
757746
else
758747
Diag(IdInfo.IdentifierLoc, diag::err_undeclared_var_use)
759748
<< IdInfo.Identifier;
760-
#endif
761749

762750
return true;
763751
}

0 commit comments

Comments
 (0)