Skip to content

Commit 8c68600

Browse files
committed
[FOLD] more cleanups
1 parent 8d29d15 commit 8c68600

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

clang/lib/Sema/SemaCXXScopeSpec.cpp

-12
Original file line numberDiff line numberDiff line change
@@ -684,16 +684,6 @@ bool Sema::BuildCXXNestedNameSpecifier(Scope *S, NestedNameSpecInfo &IdInfo,
684684
if (ErrorRecoveryLookup)
685685
return true;
686686

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

737-
#if 1
738727
if (!Found.empty()) {
739728
if (TypeDecl *TD = Found.getAsSingle<TypeDecl>()) {
740729
Diag(IdInfo.IdentifierLoc, diag::err_expected_class_or_namespace)
@@ -756,7 +745,6 @@ bool Sema::BuildCXXNestedNameSpecifier(Scope *S, NestedNameSpecInfo &IdInfo,
756745
else
757746
Diag(IdInfo.IdentifierLoc, diag::err_undeclared_var_use)
758747
<< IdInfo.Identifier;
759-
#endif
760748

761749
return true;
762750
}

0 commit comments

Comments
 (0)